these nested loops take a long time for compilation so i want the alternative and fast solution of this code
main() { int a,b,c; for(a=0;a<1000;a++) { for(b=0;b<1000;b++) { for(c=0;c<1000;c++) { cout<<"( "<<a<<" , "<<b<<" , "<<c<<" )"<<endl; if((a+b+c)==1000) { if(((a*a)+(b*b))==(c*c)) { cout<<"( "<<a<<" , "<<b<<" , "<<c<<" )"<<endl; getch(); } } } } } }e
ā