Advertisement
Fran0031

Ejemplo do-while

Dec 12th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (){
  4. int numero;
  5. printf("Numero:");
  6. scanf("%i",&numero);
  7.     if (numero>10){
  8.         printf("Es un numero mayor de 10");}
  9.         do {
  10.             printf("%i.\n", numero);
  11.             numero++;
  12.         } while (numero <= 10);
  13.  
  14.         return 0;
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement