Advertisement
DecaK

Untitled

Mar 19th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. main ()
  5. {
  6. int max = 0, ab, c, i;
  7. 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;
  8. printf("Najveci trocifreni broj koji zadovoljava uslov je: %d\n", max);
  9. return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement