Advertisement
syartina_elfarika

Untitled

Nov 21st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1.  #include<iostream>
  2. using namespace std;
  3. main () {
  4.             float a, t, luas;   /* a, t, dan luas adalah Variabel */
  5.                         cout<<" Masukkan Nilai Alas : ";
  6.                         cin>>a;
  7.                         cout<<" Masukkan Nilai Tinggi : ";
  8.                         cin>>t;
  9.                         luas = 0.5 * a * t;
  10.                         cout<<" Luas Segitiga adalah : "<<luas;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement