#include
#include
main()
{
int arr[10]={1,3,4,5,6,7,8,10,11};
int i,j,k,count=0;
for(i=0;i<10;i++)
{
for(j=i+1;j<10;j++)
{
for(k=j+1;k<10;k++)
{
if(arr[i]*arr[i]+arr[j]*arr[j]==arr[k]*arr[k])
{
count++ ;
printf("\npossible triangles %d,%d,%d",arr[i],arr[j],arr[k]);
}
}
}
}
printf("\n Number of possible Pythagorean Triplet are %d", count);
}