Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(void)
- {
- int input, sum;
- do
- {
- printf("Enter a number: ");
- scanf("%d", &input);
- sum = input + 10;
- printf("Answer: %d\n", sum);
- }
- while ( input != 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement