Help i dont understand very much the program i need to do...
Here is the direction:
Using Dev C++ create a program that will compute for the trigonometric function csc45/sin30 then get the equivalent angle converted into radians, the program should loop 50 times before the final answer should be met, print "done" if the program is met, if not print "try again..."
ok here is what i did but i think it's wrong.. i didn't understand what condition should be met so i just printed "try again" 50 times lol
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
#include <conio.h>
#include <math.h>
usingnamespace std;
int main (){
int a, b;
constdouble PI =3.141592653589793238462;
double x, y, result;
x = 45;
y = 30;
for ( int a = 50; a>0; a--) {cout<<"\ntry again..."<<a-1<<"left";;}
result = (1/(sin (x*PI/180)))/ sin (y*PI/180);
cout<<"\nThe equivalent in radians of csc"<<x<<" degrees/sin"<<y<<" degrees is "<<result<<"\n";
cout<<"done\n";
system("PAUSE");
return 0;
}
Using Dev C++ create a program that will compute for the trigonometric function csc45/sin30 then get the equivalent angle converted into radians, the program should loop 50 times before the final answer should be met, print "done" if the program is met, if not print "try again..."