//Arithmetic operations
#include<stdio.h>
int main()
{
int a=10,b,add,sub,mul,div,mod;
printf("Enter a value=\n");
scanf("%d",&a);
printf("Enter b value=");
scanf("%d",&b);
printf("\na=%d,b=%d", a,b);
add=a+b;
printf("\nResult=%d\n",add);
sub=a-b;
printf("Result=%d\n",sub);
mul=a*b;
printf("Result=%d\n",mul);
div=a/b;
printf("Result=%d\n",div);
mod=a%b;
printf("Result=%d",mod);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: