Advertisement
Schknheit

Untitled

May 6th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. int n,r;
  6.  
  7. printf("Entre com o numero\n");
  8. scanf("%d",&n);
  9.  
  10. while(n != 0){
  11. r = n % 10;
  12. n = n / 10;
  13. printf("%d",r);
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement