tugas 1.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; //Nama : Moh.Faqih s.Karim //NIM : 3420230034 int main() { int alas = 20; int tinggi = 10; float luas = alas * tinggi / 2; cout<<"============================" << endl; cout<<"Program Menghitung Luas Segitiga" << endl; cout<<"============================" << endl; printf("alas segitiga adalah %d\n", alas); printf("tinggi segitiga adalah %d\n", tinggi); cout<<"============================" << endl; printf("luas segitiga adalah %.2f\n", luas); cout<<"============================" << endl; return 0;
Editor Settings
Theme
Key bindings
Full width
Lines