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

SCRIPT C++_PRISMA SEGITIGA

Jumat, 18 Januari 20130 komentar


//judul program : Rumus Prisma Segitiga
//created by maiaachiea

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

void main () {
int p,l,t, Volume;
cout<<"INGIN TAU VOLUME PRISMA SEGITIGA...??"<<endl<<endl;
cout<<"MASUKKAN PANJANG = ";
cin>>p;
cout<<"MASUKKAN LEBAR = ";
cin>>l;
cout<<"MASUKKAN TINGGI = ";
cin>>t;

Volume = 0.5*p*l*t;

cout<<"jadi hasilnya adalah....."<<endl<<endl;
cout<<"VOLUME PRISMA SEGITIGA = "<<Volume<<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