fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
Success #stdin #stdout 0s 5312KB
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);
    return 0;
}
stdout
Standard output is empty