Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void)
  5. {
  6.     int input, sum;
  7.     do
  8.     {
  9.         printf("Enter a number: ");
  10.         scanf("%d", &input);
  11.         sum = input + 10;
  12.         printf("Answer: %d\n", sum);
  13.     }
  14.     while ( input != 0);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement