#include<iostream>
using namespace std;
int Luas(int x,int y)
{int hasil;
hasil =x*y;
return hasil ;
}
main()
{ int p=0,l=0,k;
cout<<"Menghitung Luas Persegi 4"<<endl;
cout<<endl<<"Masukan Panjang : ";cin>>p;
cout<<endl<<"Masukan Lebar : ";cin>>l;
k=Luas(p,l);
cout<<endl<<"Luas = "<< k;
}
Comments
Post a Comment