if (pow(c,2) == pow(a,2)+pow(b,2))
{
cout << " Your triangle is a right triangle"<< endl;
for ( i = a; i <= c; i++)
{
for ( j =1 ; j<=b; j++)
cout <<"|0|";
cout << endl;
}
}
When i run the code i get
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0|
instead of
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0|
|0||0||0||0||0||0||0||0| <<<<<<< Im missing this row
What should i change?