Advertisement
RafaelMonitor

While

Mar 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int numero;
  7.     printf("\nDigite um numero\n");
  8.     scanf("%d",&numero);
  9.     while(numero!=0)
  10.     {
  11.         printf("\nO valor de numero =%d\n",numero);
  12.         printf("Hello world!\n");
  13.         printf("\nDigite um numero\n");
  14.         scanf("%d",&numero);
  15.     }
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement