listing program tugas kelompok

#include
#include
void main()
{
char nim1[10],nim2[10],nim3[10],nim4[10],nim5[10],kls[10];
int alas,tinggi;
long ls_sgtg;
int panjang,lebar;
long ls_prspj;
int sisi1,sisi2;
long ls_bjrs;

//klompok
cout<<"\n TUGAS KELOMPOK"<<endl;
cout<<"KELAS 11.1C.12\n";
cout<<"MENGHITUNG LUAS MENGGUNAKAN FUNGSI CIN DAN COUT"<<endl;
cout<<"\n======================================="<<endl;
cout<<"\nAnita Maisari 11111137";
cout<<"\nFitriah Andayani 11112034";
cout<<"\nDina Yulina 11112609";
cout<<"\nSri Winarsih 11112802";
cout<<"\nHendri Kurniawan 11112825\n\n";

//input
cout<<"MASUKKAN NILAI KE VARIABEL BERIKUT:\n";
cout<>alas;
cout<>tinggi;
cout<>panjang;
cout<>lebar;
cout<>sisi1;
cout<>sisi2;

//proses
ls_sgtg=alas*tinggi/2;
ls_prspj=panjang*lebar;
ls_bjrs=sisi1*sisi2;
clrscr();

//output
cout<<" HASIL LUAS"<<endl;
cout<<"\n——————————————-"<<endl;
cout<<"Anita MAisari ="<<nim1<<endl;
cout<<"Fitriah Andayani ="<<nim2<<endl;
cout<<"Dina Yulina ="<<nim3<<endl;
cout<<"Sri Winarsih ="<<nim4<<endl;
cout<<"Hendri Kurniawan ="<<nim5<<endl;
cout<<"KELAS ="<<kls<<endl;
cout<<"Alas ="<<alas<<endl;
cout<<"Tinggi ="<<tinggi<<endl;
cout<<"———————————————-"<<endl;
cout<<"LUAS SEGITIRA ="<<ls_sgtg<<endl;
cout<<"_______________________________________________"<<endl;
cout<<"Panjang ="<<panjang<<endl;
cout<<"Lebar ="<<lebar<<endl;
cout<<"———————————————–"<<endl;
cout<<"LUAS PERSEGI PANJANG ="<<ls_prspj<<endl;
cout<<"_______________________________________________"<<endl;
cout<<"Sisi1 ="<<sisi1<<endl;
cout<<"Sisi2 ="<<sisi2<<endl;
cout<<"———————————————–"<<endl;
cout<<"LUAS BUJUR SANGKAR ="<<ls_bjrs<<endl;
cout<<"_______________________________________________"<<endl;
getch();
}

Categories: HTML | Tags: | Tinggalkan komentar

Navigasi pos

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

Blog di WordPress.com.

%d blogger menyukai ini: