Arithmetic Operations in C

Arithmetic Operations in C,arthematic oparation.c #include #include int main() { int a,b; printf(" 1.Addition\n 2. Subtraction\

Arithmetic Operations using c program.




int main()


int a,b,ch;

printf(" 1.Addition\n 2. Subtraction\n 3. Multiplication\n 4.Division\n");

int op; printf("Enter the values of a & b: "); scanf("%d %d",&a,&b); 

printf("Enter your Choice: "); 

scanf("%d", &ch);



case 1 :printf("Sum of %d and %d is: %d", a,b,a+b);break;

case 2:printf("Difference of %d and %d is: %d",a,b,a-b); break;

case 3:printf("Multiplication of %d and %d is : %d" ,a,b,a*b);break;

case 4 : printf("Division of Two Numbers is %d ",a/b);break;

default:printf(" Enter Your Correct Choice."); break;

return 0;



Getting Info...

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Contact Us