fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. printf("The C Addition/Multiply Program.\n");
  4. int num1 = 25;
  5. int num2 = 25;
  6. int num3 = (num1 + num2);
  7. printf("NUM1 %-2i NUM2 %-2i NUM# %-3i\n", num1, num2, num3);
  8. int num4 = 35;
  9. int num5 = 35;
  10. int num6 = (num4 * num5);
  11. printf("NUM4 %-2i NUM5 %-2i NUM6 %-5i\n", num4, num5, num6);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5284KB
stdin
1
2
10
42
11
stdout
The C Addition/Multiply Program.
NUM1  25  NUM2  25  NUM#  50 
NUM4  35  NUM5  35  NUM6  1225