fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("The C Add 2 Numbers Programs.\n");
  5. int x = 10;
  6. int y = 10;
  7. int z = (x + y);
  8. printf("X %-2i Y %-2i Z %-3i\n", x,y,z);
  9. return 0;
  10. }
Success #stdin #stdout 0s 5268KB
stdin
1
2
10
42
11
stdout
The C Add 2 Numbers Programs.
X  10  Y  10  Z  20