Josif_tepe

Untitled

Aug 9th, 2025
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.        
  5.     int n;
  6.     scanf("%d", &n);
  7.    
  8.     int i = n;
  9.     while(i > 0) {
  10.         int cifra = i % 10;
  11.         i /= 10;
  12.        
  13.         printf("%d ", cifra);
  14.     }
  15.    
  16.    
  17.    
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment