Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <conio.h>
- #include <math.h>
- main()
- {
- int a = 45;
- int b = 4;
- int c = 2;
- float ipangkat, iakar, isin ,icos, itan;
- iakar = sqrt(b);
- cout<<"Akar dari "<<b<<" adalah"<<iakar<<endl;
- ipangkat = pow(b,c);
- cout<<b<<" pangkat "<<c<<" adalah"<<ipangkat<<endl;
- isin = sin(a);
- cout<<"sin sudut "<<a<<" derajat adalah"<<isin<<endl;
- icos = cos(a);
- cout<<"cos sudut "<<a<<" derajat adalah"<<icos<<endl;
- itan = tan(a);
- cout<<"tan sudut "<<a<<" derajat adalah"<<itan;
- getch();
- }
Add Comment
Please, Sign In to add comment