Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n1 , n2 , i ;
- char enter ;
- printf ("Números ? ") ;
- scanf ("%d %d" , &n1 , &n2) ;
- for (i = 0; n1 < n2 ; n1++ , i++)
- {
- if (i % 20 == 0 && i >= 20)
- {
- printf ("<Prima Enter p/ continuar>") ;
- scanf ("%c" , &enter) ;
- if (i == 20) scanf ("%c" , &enter) ;
- }
- printf ("%d => %c" , n1 , n1) ;
- if (n1 > 47 && n1 < 58) printf (" (dígito)\n") ;
- else if (n1 > 64 && n1 < 91) printf (" (maiúscula)\n") ;
- else if (n1 > 97 && n1 < 123) printf (" (mínuscula)\n") ;
- else printf ("\n") ;
- }
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment