Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main(){
  5.     int n;
  6.     printf("Dati numarul :");
  7.     scanf("%d",&n);
  8.     printf("Cifrele numarului sunt:\n");
  9.     while(n){
  10.         int x=n%10;
  11.         printf("%d ",x);
  12.         n=n/10;
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement