fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main(void) {
  4. printf("the C String And Math Program.\n");
  5. char fun[80] = "Hello America, Lets Have A Good Day!";
  6. printf("Fun %-s\n", fun);
  7. printf("The Addition Problem.\n");
  8. int x = 25;
  9. int y = 25;
  10. int z = (x + y);
  11. printf("X %-3i Y %-3i Z %-4i\n", x, y, z);
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5260KB
stdin
1
2
10
42
11
stdout
the C String And Math Program.
Fun  Hello America, Lets Have A Good Day!
The Addition Problem.
X  25   Y  25   Z  50