Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a;
- int b;
- int c;
- int d;
- int e;
- int f;
- printf("Unesite cetvorocifreni broj: ");
- scanf(" %d", &a);
- b = a % 10;
- c = a / 10 % 10;
- d = a / 100 % 10;
- e = a / 1000;
- f = b * 1000 + c * 100 + d * 10 + e;
- printf("Uneseni broj obrnutih cifara je: %d ", f);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement