#include<stdio.h>
#include<iostream.h>
#include<conio.h>
main()
{
float alas, tinggi, panjang, lebar, sisi;
cout<<"MENGHITUNG LUAS SETIGA"<<endl;
cout<<"===================================\n";
printf("Alas = ");scanf("%f",&alas);
printf("Tinggi = ");scanf("%f",&tinggi);
cout<<("Luas Segitiga Adalah = ");
cout<<alas * tinggi /2;
cout<<"\n\n"<<endl;
cout<<"MENGHITUNG LUAS PERSEGI PANJANG"<<endl;
cout<<"===================================\n";
printf("Panjang = ");scanf("%f",&panjang);
printf("Lebar = ");scanf("%f",&lebar);
cout<<("Luas Persegi Panjang Adalah = ");
cout<<panjang * lebar;
cout<<"\n\n"<<endl;
cout<<"MENGHITUNG LUAS BUJUR SANGKAR"<<endl;
cout<<"===================================\n";
printf("Sisi = ");scanf("%f",&sisi);
cout<<("Luas Bujur Sangkar Adalah = ");
cout<<sisi * sisi;
cout<<endl<<endl<<endl;
cout<<"Nama Kelompok : \n";
cout<<"===================================\n";
cout<<"KELAS 12.1C.27\n";
cout<<"===================================\n";
cout<<"NIM = 12150996\n";
cout<<"NAMA = CHINTYA DEWI\n";
cout<<"===================================\n";
cout<<"NIM = 12155512\n";
cout<<"NAMA = SUTINA\n";
cout<<"===================================\n";
cout<<"NIM = 12155514\n";
cout<<"NAMA = AYU NOTA\n";
cout<<"=====================================\n";
cout<<"NIM = 12155587 \n";
cout<<"NAMA = HANIF ALFIYANTO\n";
cout<<"====================================="<<endl;
getch();
}
Output >>
Tidak ada komentar:
Posting Komentar