Advertisement
Josif_tepe

Untitled

Apr 30th, 2021
142
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. #include <stdlib.h>
  3.  
  4. void prevrti(int broj) {
  5.     if(broj == 0) {
  6.         return;
  7.     }
  8.     printf("%d", broj % 10);
  9.     prevrti(broj / 10);
  10. }
  11.  
  12. int main() {
  13.     int N;
  14.     scanf("%d", &N);
  15.     prevrti(N);
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement