Quick actions

cmd+k|ctrl+k

Navigation

Languages

LUAS SEGITIGA

Snippet info

Language

Cpp

Visibility

public

Author

sefia-syahmil

Created

2022-10-06T06:06:02.023595Z

Updated

2022-10-06T06:22:39.334171Z

#include <iostream>
using namespace std;
void hitungLuasSegitiga() {
     double alas = 10;
     double tinggi = 8;
     double luas = (alas * tinggi) / 20;
     cout << "Luas segitiga adalah: " << luas << endl; 
}

int main()
{
  hitungLuasSegitiga(); 

  return 0;
}
INFO