Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C Compiler.
- Code, Compile, Run and Debug C program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <stdio.h>
- int main()
- {
- int a = 0;
- int b = 0;
- int c = 0;
- int d = 0;
- int e = 0;
- printf("Enter the 1st number ");
- scanf("%d /n", &a);
- printf("Enter the 2nd number ");
- scanf("%d /n", &b);
- printf("Enter the 3rd number ");
- scanf("%d /n", &c);
- printf("Enter the 4th number ");
- scanf("%d /n", &d);
- printf("Enter the 5th number ");
- scanf("%d /n", &e);
- int res = a + b + c + d + e;
- printf("The sum of all the numbers is %d", res);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement