Advertisement
Josif_tepe

Untitled

Nov 19th, 2023
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main (int argc, const char * argv[]) {
  5.    
  6.    
  7.     int n = 1234;
  8.    
  9.     for(int x = n; x > 0; x /= 10) {
  10.         int cifra = x % 10;
  11.        
  12.         printf("%d ", cifra);
  13.     }
  14.  
  15.  
  16. return 0;
  17.  
  18. }
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement