Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hello guys ,,Please I need the answer quickly as soon as possible :(( Q11) the P

ID: 3630282 • Letter: H

Question

Hello guys ,,Please I need the answer quickly as soon as possible :((

Q11)
the Pythagorean theorem states that the sum of the squares of the sides of a right triangle is equal to the square of the hypotenuse .For example ,If two sides of a right triangle have lengths 3 and 4 ,then the hypotenuse must have a length of 5 .togathers the integer 3,4 and 5 form a Pythagorean triple .There are an infinite number of such triples .Given two positive integers ,m and m,where m>n , a Pythagorean triple can be generated by the following formulas :
side 1 =m^2- n^2
side2=2mn
hypotenuse=m^2+ n^2

Explanation / Answer

#include<stdio.h>
using namespace std;
int main()
{
int m,n;
printf(" enter values m and n ") ;
scanf ("%d %d", &m, &n);
if(m==n)
printf(" both should not be equal. ");
else
printf( "Pythagorean triple %d %d %d"  &(m*m-n*n),&(2*m*n),&(m*m+n*n));

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote