Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <conio.h>
- #include <math.h>
- main()
- {
- float a,t,c;
- clrscr();
- cout <<" Masukkan alas segitiga : ";
- cin >> a;
- cout <<" Masukkan tinggi segitiga : ";
- cin >> t;
- c = sqrt((a*a)+(t*t));
- cout <<" ---------------------------" <<endl;
- cout <<" Hasilnya adalah : " << c <<endl;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement