fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. return 0;
  6. }
  7.  
Success #stdin #stdout 0s 5288KB
stdin
#include<stdio.h>
int main()
{
int a,b, sum, sub, mul; 
float dev;
printf("please enter 2 integers a b:"):
scanf ("%d %d",&a, &b);
sum=a+b; 
sub=a-b; 
mul=a*b;
dev= (float)a/b; 
printf("%d+%d=%d\n", a,b,sum);
printf ("%d-%d=%d\n",a,b, sub);
printf ( "%d*%d=%d \n", a,b,mul);
printf ("%d/%d=%.2f\n",a,b,dev);
}
stdout
Standard output is empty