bouchnina

Inverser un nombre

Feb 22nd, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3.  
  4.  void main() {
  5.         int N;
  6.         printf("Entrez un nbr : ");
  7.         scanf("%d",&N);
  8.  
  9.         while(N>0){
  10.                 printf("%d",N%10);
  11.                 N = N/10;
  12.         }
  13.         printf("/n");
  14.         system("pause");
  15.  }
Advertisement
Add Comment
Please, Sign In to add comment