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