fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("The C Add/Multiply Program.\n");
  5. int a = 50;
  6. int b = 50;
  7. int c = (a + b);
  8. printf("A %-3i B %-3i C %-4i\n", a, b, c);
  9. int d = 50;
  10. int e = 50;
  11. int f = (d * e);
  12. printf("D %-3i E %-3i F %-4i\n", d, e, f);
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5280KB
stdin
1
2
10
42
11
stdout
The C Add/Multiply Program.
A  50   B  50   C  100 
D  50   E  50   F 2500