Odpowiedzi

Najlepsza Odpowiedź!
2009-11-27T22:26:30+01:00
Dobra to będzie coś takiego:

#include <cstdlib>
#include <iostream>
#include <cmath>
#include <stdio.h>

using namespace std;

int main(int argc, char *argv[])
{
double a, radian, sinus, cosinus, tangens, cotangens;
const double pi = 3.1415926;
cout << "Podaj liczbe rzeczywista: " << endl;
cin >> a;
radian = pi*a/180;
sinus = sin(radian);
cosinus = cos(radian);
tangens = tan(radian);
cotangens = atan(radian);
cout << "Radian wynosi: " << radian << endl;
cout << "Sinus wynosi: " << sinus << endl;
cout << "Cosinus wynosi: " << cosinus << endl;
cout << "Tangens wynosi: " << tangens << endl;
cout << "Cotangens wynosi: " << cotangens << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
4 5 4