menghitung luas trapesium

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { cout << "## Program C++ Menghitung Luas Trapesium ##" << endl; cout << "=============================================" << endl; cout << endl; float sisi_atas, sisi_bawah, tinggi, luas; cout << "Input panjang sisi sejajar atas: "; cin >> sisi_atas; cout << "Input panjang sisi sejajar bawah: "; cin >> sisi_bawah; cout << "Input tinggi trapesium: "; cin >> tinggi; luas = 0.5 * (sisi_atas + sisi_bawah) * tinggi; cout << "Luas trapesium = " << luas << endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines