Question Number 176101 by BaliramKumar last updated on 12/Sep/22
![x^2 − 4y^2 = 3z^2 [ x, y, z ∈ N ] HCF(x, y, z) = 1 like (4, 1, 2) x, y, z < 100 solve by computer programing](https://www.tinkutara.com/question/Q176101.png)
Commented by Ar 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 by Ar Brandon last updated on 12/Sep/22

Commented by Ar 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 by BaliramKumar last updated on 13/Sep/22

Commented by BaliramKumar last updated on 12/Sep/22

Commented by BaliramKumar last updated on 13/Sep/22
