fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a,b,c;
  6.  
  7. int sum;
  8.  
  9. printf("Enter the first integer\n");
  10. scanf("%d%*c", &a);
  11.  
  12. printf("Enter the second integer\n");
  13. scanf("%d%*c", &b);
  14.  
  15. printf("Enter the third integer\n");
  16. scanf("%d%*c", &c);
  17.  
  18. sum = a + b + c;
  19. printf("The sum of those numbers is: %d\n",sum);
  20. return 0;
  21. }
Success #stdin #stdout 0s 10320KB
stdin
7
4
5
stdout
Enter the first integer
Enter the second integer
Enter the third integer
The sum of those numbers is: 16