Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Use of arithmetic operator */
- #include<stdio.h>
- #include<conio.h>
- int main()
- {
- int a,b,ans;
- printf("\nEnter two number:");
- scanf("%d %d",&a,&b);
- ans=a+b;
- printf("\n Addition of two number is %d",ans);
- ans=a-b;
- printf("\n Subtraction of two number is %d",ans);
- ans=a*b;
- printf("\n Multiplication of two number is %d",ans);
- ans=a/b;
- printf("\n Division of two number is %d",ans);
- ans=a%b;
- printf("\n Module of two number is %d",ans);
- return 0;
- }
Add Comment
Please, Sign In to add comment