Q:

Reads the measure of an angle in degrees and converts it to radians in c++

0

Write a program that reads the measure of an angle in degrees and converts it to radians

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <iostream>
using namespace std;
int main(){
const float pi= 3.14159;
int deg;
cout<< "enter the angle in degrees= ";
cin>>deg;
float r=deg*pi/180;
cout<<"equivalent in radian is "<<r;
}

 

Output:

enter the angle in degrees= 90
equivalent in radian is 1.5708

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Display the largest Element of an array using c++... >>