Patrick B. answered 04/13/21
Math and computer tutor/teacher
using namespace std;
#include <iostream>
#include <math.h>
Go()
{
double oppositeSide=-1;
double adjacentSide=-1;
while (oppositeSide<=0)
{
cout << "Please input the measure of the opposite side :>";
cin >> oppositeSide;
}
while (adjacentSide<0)
{
cout << "Please input the measure of the adjacent side :>";
cin >> adjacentSide;
}
double angle = atan(oppositeSide/adjacentSide);
cout << "the angle is " << angle << endl;
}
int main()
{
Go();
}