Advertisement
rdsedmundo

3025

Apr 29th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int a, pri, seg;
  6.     for(int i = 1000; i < 10000; i++){
  7.     pri=i/100; seg = i%100;
  8.         if ( (pri+seg)*(pri+seg) == i) printf("%i tem a mesma característica de 3025\n", i);
  9.     }
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement