Convert radians to degrees.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float rad,deg;
cout << "Enter radian : " << endl;
cin >>rad;
deg=( rad * 180 ) / 3.14159;
cout<<"radian value is:"<<deg<<endl;
}
Convert radians to degrees.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float rad,deg;
cout << "Enter radian : " << endl;
cin >>rad;
deg=( rad * 180 ) / 3.14159;
cout<<"radian value is:"<<deg<<endl;
}
0 Comments
Post a Comment