Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int broj;
- scanf("%d", &broj);
- int prevrten_broj = 0;
- for(int i = broj; i > 0; i /= 10) {
- int cifra = i % 10;
- prevrten_broj = (prevrten_broj * 10) + cifra;
- }
- printf("%d\n", prevrten_broj);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement