int main() {
int num1, num2;
char ch;
printf("Enter Two numbers:n");
scanf("%d %d",&num1,&num2);
printf("Function:a to add | s to subtract | m to multiply | d to divide \n");
ch = getch();
if(ch == 'a') printf("The sum is: %d", num1+num2);
if(ch == 's') printf("The subtraction result is: %d", num1-num2);
if(ch == 'm') printf("The multiplied value is: %d", num1*num2);
if(ch == 'd') printf("The result is: %d", num1/num2);
printf("\n \n \n");
}
Archives
Twitter
- ShortAd makes it to the top 10 in AloAshbei Contest. I made it to the final round! May the Almighty be with me! 1 day ago
- Connected both my twitter and facebook accounts with Gwibber! Giving the Ubuntu "Me" menu a try! 1 day ago
- Installed Android on my netbook using VirtualBox... Will play with when I get some free time! 1 day ago
- Working on discharging my laptop battery. Planning to leave it on a 8 hours long charging session after total discharge. 2 days ago
- Frequent power cuts! Need to charge lappy! 5 days ago
- @thehungrycoder Cool :) 5 days ago
- Simple HTML, Finally Something Like BeautifulSoup :- http://bit.ly/172Cp5 5 days ago
- @CrysisGod What is the strongest? Vim ? 5 days ago
- Short Ad can be used via SMS now. It will also let users block specific senders or totally opt out from the service. 6 days ago
- @junal thanks bro! 6 days ago
-
Just completed the course “Computer programming and Database management”…did the same thing in an assignment and do not like C anymore.
Good post just to pass time.
Carry on.
I don’t like C any more as well.
I love Python and PHP.