fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. for (int i = 100; i < 1000; i++)
  7. {
  8. if (i == (i/10)*(i/10) - (i%10)*(i%10))
  9. printf("i = %d\n",i);
  10. }
  11. //getch();
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 4276KB
stdin
Standard input is empty
stdout
i =  100
i =  147