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

SCRIPT C++_BOLA

Jumat, 18 Januari 20130 komentar


//judul program : rumus luas dan volume bola
//created by maiaachiea

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

void main () {
float phi=3.14, r, Luas, Volume;
cout<<"INGIN TAU LUAS DAN VOLUME BOLA...??"<<endl<<endl;
cout<<"MASUKKAN JARI-JARI = ";
cin>>r;

Luas = 4*phi*r*r;
Volume = 1.33*phi*r*r*r;

cout<<"jadi hasilnya adalah....."<<endl<<endl;
cout<<"LUAS BOLA = "<<Luas<<endl;
cout<<"VOLUME BOLA = "<<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