in a world of increasingly advanced use of English is very necessary and very commonly used in day to day, so from an early age parents should give penggetahuan of the English language to their children so that next time can be developed for the future
hallo gaes kita ketemu lagi masih bersama mas anang ganteng kuadrat,kali ini mas anang ganteng akan memberikan sedikit info buat mas mas ganteng dan mb mb cantik tentang rumus segitiga dalam bahasa dev.
bekicot gaes
main()
{
int pilihan,luas,alas,tinggi,sisi1,sisi2,sisi3,keliling;
cout<<"Program Luas dan Keliling Segitiga\n";
cout<<"[1] Luas Segitiga\n";
cout<<"[2] Keliling Segitiga\n";
cout<<"Masukkan Pilihan Anda\n";
cin>>pilihan;
switch(pilihan)
{
case 1 :cout<<"\nMasukkan Alas = ";
cin>>alas;
cout<<"Masukkan Tinggi = ";
cin>>tinggi;
luas=alas*tinggi/2;
cout<<"Luas segitiga = "<<luas;
break;
case 2 :cout<<"\nMasukkan panjang sisi ke-1 = ";
cin>>sisi1;
cout<<"Masukkan panjang sisi ke-2 = ";
cin>>sisi2;
cout<<"Masukkan panjang sisi ke-3 = ";
cin>>sisi3;
keliling=sisi1+sisi2+sisi3;
cout<<"Keliling Segitiga = "<<keliling;
break;
default:cout<<"Inputtan Salah";break;
}
getch();
//this source code taken from de sullivan