Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3. #include <math.h>
  4. main()
  5. {
  6. float a,t,c;
  7. clrscr();
  8. cout <<" Masukkan alas segitiga : ";
  9. cin >> a;
  10. cout <<" Masukkan tinggi segitiga : ";
  11. cin >> t;
  12. c = sqrt((a*a)+(t*t));
  13. cout <<" ---------------------------" <<endl;
  14. cout <<" Hasilnya adalah : " << c <<endl;
  15. getch();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement