Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main () {
- int A;
- printf("Digite o numero a ser invertido\n");
- scanf("%i", &A);
- int B= 10;
- int sobra= A %10;
- while (A>0){
- printf("%i\n", sobra);
- A/=10;
- sobra= A%10;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement