Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void prevrti(int broj) {
- if(broj == 0) {
- return;
- }
- printf("%d", broj % 10);
- prevrti(broj / 10);
- }
- int main() {
- int N;
- scanf("%d", &N);
- prevrti(N);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement