Selamat datang di maiav3.blogspot.com => Blog "TANPO ASMO"

SCRIPT C++_JAJAR GENJANG

Jumat, 18 Januari 20130 komentar


//judul program : Rumus Luas dan Keliling Jajaran Genjang
//created by maiaachiea

#include <iostream.h>
#include <conio.h>
#include <math.h>

void main () {
int a, t, p, l, Luas, Keliling;
cout<<"INGIN TAU LUAS DAN KELILING JAJARAN GENJANG...??"<<endl<<endl;
cout<<"MASUKKAN ALAS = ";
cin>>a;
cout<<"MASUKKAN TINGGI = ";
cin>>t;
cout<<"MASUKKAN PANJANG = ";
cin>>p;
cout<<"MASUKKAN LEBAR = ";
cin>>l;

Luas= a*t;
Keliling= 2*p+2*l;

cout<<"jadi hasilnya adalah....."<<endl<<endl;
cout<<"LUAS JAJARAN GENJANG = "<<Luas<<endl;
cout<<"KELILING JAJARAN GENJANG = "<<Keliling<<endl<<endl;
cout<<"*SELAMAT BELAJAR,SEMOGA SUKSES*"<<endl<<endl;

}
Share this article :

Posting Komentar

 
Support : Maia Achiea Template
Copyright © 2011. .: ^_^ :. - All Rights Reserved
Proudly powered by Blogger