#include < stdio.h >
main () {
int a,b ;
printf ( "enter two numbers ") ;
scanf ("%d%d",&a ,&b) ;
printf("\n%d + %d = %d",a,b,a+b);
printf("\n%d - %d = %d",a,b,a-b);
printf("\n%d * %d = %d",a,b,a*b);
printf("\n%d / %d = %d",a,b,a/b);
printf("\n%d % %d = %d",a,b,a%b);
}
main () {
int a,b ;
printf ( "enter two numbers ") ;
scanf ("%d%d",&a ,&b) ;
printf("\n%d + %d = %d",a,b,a+b);
printf("\n%d - %d = %d",a,b,a-b);
printf("\n%d * %d = %d",a,b,a*b);
printf("\n%d / %d = %d",a,b,a/b);
printf("\n%d % %d = %d",a,b,a%b);
}
No comments:
Post a Comment