Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- main () {
- float a, t, luas; /* a, t, dan luas adalah Variabel */
- cout<<" Masukkan Nilai Alas : ";
- cin>>a;
- cout<<" Masukkan Nilai Tinggi : ";
- cin>>t;
- luas = 0.5 * a * t;
- cout<<" Luas Segitiga adalah : "<<luas;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement