Quick actions

cmd+k|ctrl+k

Navigation

Languages

Luas Segitiga

Snippet info

Language

Cpp

Visibility

public

Author

jacqueeeline

Created

2022-10-06T06:05:06.798686Z

Updated

2022-10-06T06:22:28.135461Z

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

int main()
{
    hitungLuasSegitiga();

    return 0;
}
INFO