Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- main ()
- {
- int max = 0, ab, c, i;
- for(i=100;i<=999;i++) if (i == ((i / 100) * 10 + (i % 100) / 10)*((i / 100) * 10 + (i % 100) / 10)-(i % 10)*(i % 10) && i > max) max = i;
- printf("Najveci trocifreni broj koji zadovoljava uslov je: %d\n", max);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement