K=1
A= sin (y*k), b=cos (y*k), c= tan (y*k), d=1/c, z=30*k
K<13
Output : sin, cos, tan
Deskripsi :
y= pi/6
K=1
A= sin (y*k), b=cos (y*k), c= tan (y*k), d=1/c, z=30*k
K<13
Flowchartnya :
c++ :
#include <iostream> #include <math.h> #include <cstdlib> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int main(int argc, char** argv) { cout<<"======================"<<endl; cout<<"======================"<<endl; cout<<"MENGHITUNG SIN COS TAN"<<endl; cout<<"======================"<<endl; cout<<"======================"<<endl; double sudutC,SINC,COSC,TANC; float PI=3.14; cout<<"masukan nilai sudut : "; cout<<"C = "; cin>>sudutC; SINC= SIN(sudutC*PI/180); COSC= COS(sudutC*PI/180); TANC= TAN(sudutC*PI/180); cout<<" SIN C : "<<SINC<<endl; cout<<" COS C : "<<COSC<<endl; cout<<" TAN C : "<<TANC<<endl; return 0; }
output :
Tidak ada komentar:
Posting Komentar