any 1 has solution for it:, In the triangle Pythagoras theorem is used to find out the length of any in known side
If the base is 4 cm and height is 7cm find out the hypotenuse by using the Pythagoras
(Hypotenuse) 2 = (base) 2+ (perpendicular )2
, i need C++ code of it without header file of <math.h> , need to put only conio.h ,iostream.h header file only,
have done this code:
Code:
#include<conio.h>
#include<iostream.h>
#include<math.h>
void main()
{
clrscr();
int base,perp,hyp;
base=4,perp=7;
base=base*base;
perp=perp*perp;
hyp=sqrt(base+perp);
cout<<hyp;
getch();
}
but i hv to do this solution without math.h header file, then how can i find square root ? any alternate method to solve it without math.h header file please help