Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int num ;
- char c1 , c2 ;
- printf ("Número ? ");
- scanf ("%d" , &num);
- c1 = (char) (((int)'0') + (num / 10));
- c2 = (char) (((int)'0') + (num % 10));
- printf ("%c\n%c\n", c1 , c2 );
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment