IvoSilva

[PROG1] Ficha 4 | Exercício 6

Nov 6th, 2011
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.66 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int n1 , n2 , i ;
  5.     char enter ;
  6.     printf ("Números ? ") ;
  7.     scanf ("%d %d" , &n1 , &n2) ;
  8.     for (i = 0; n1 < n2 ; n1++ , i++)
  9.     {
  10.         if (i % 20 == 0 && i >= 20)
  11.         {
  12.             printf ("<Prima Enter p/ continuar>") ;
  13.             scanf ("%c" , &enter) ;
  14.             if (i == 20) scanf ("%c" , &enter) ;
  15.         }
  16.         printf ("%d => %c" , n1 , n1) ;
  17.         if (n1 > 47 && n1 < 58) printf (" (dígito)\n") ;
  18.         else if (n1 > 64 && n1 < 91) printf (" (maiúscula)\n") ;
  19.         else if (n1 > 97 && n1 < 123) printf (" (mí­nuscula)\n") ;
  20.         else printf ("\n") ;
  21.     }
  22.     return 0 ;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment