#include<iostream.h> #include<math.h> #include <conio.h> void main(){ clrscr(); int a; const float phi =3.14159265; float hasil; cout<<"masukan a: "; cin>>a; hasil = sin (a*phi/180); cout<<"hasilnya = "<<hasil<<endl; getch(); }
Wednesday, May 2, 2012
Program Mencari Nilai Sinus (SIN) dengan math.h di C++
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
Mohon maaf untuk komentar yang masuk harus terlebih dahulu melalui moderasi untuk menghindari adanya hal-hal yang tidak diinginkan dan juga SPAM..