Question and Answers Forum | ||
Question Number 176101 by BaliramKumar last updated on 12/Sep/22 | ||
![]() | ||
Commented byAr Brandon last updated on 12/Sep/22 | ||
#include <stdio.h> int main(void) { for (short x = 1; x < 100; x++) for (short y = 1; y < 100; y++) for (short z = 1; z < 100; z++) if (x*x - 4*y*y == 3*z*z) printf("(x,y,z)=(%hd,%hd,%hd)\n",x,y,z); return 0; } | ||
Commented byAr Brandon last updated on 12/Sep/22 | ||
![]() | ||
Commented byAr Brandon last updated on 12/Sep/22 | ||
#include <iostream> using namespace std; int main(void) { for (short x = 1; x < 100; x++) for (short y = 1; y < 100; y++) for (short z = 1; z < 100; z++) if (x*x - 4*y*y == 3*z*z) cout<<"(x,y,z)=("<<x<<","<<y<<","<<z<<")"<<endl; return 0; } | ||
Commented byBaliramKumar last updated on 13/Sep/22 | ||
![]() | ||
Commented byBaliramKumar last updated on 12/Sep/22 | ||
![]() | ||
Commented byBaliramKumar last updated on 13/Sep/22 | ||
![]() | ||