// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// This program converts a degrees
// into radians, for examples
// 180 degress = 6.24 ( or 2 * pi) radians
#include
#include
#include
void ConvertToRadians(double) ;
const double PI = 3.14 ;
int main()
{
double degrees ;
while(true)
{
cout << "(Enter -1 to exit)" << endl ;
cout << "Enter the degrees" << endl ;
cin >> degrees ;
ConvertToRadians(degrees) ;
getch() ;
system("cls") ;
}
return 0 ;
}
void ConvertToRadians(double d)
{
double radians = (d / 360) * (2.0 * PI);
cout << "Radians = " << radians << endl ;
}
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)