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

SCRIPT C++_LINGKARAN

Jumat, 18 Januari 20130 komentar


//judul program : Rumus Luas dan Keliling Lingkaran
//created by maiaachiea

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

void main () {
float phi=3.14, r, luas, keliling;
cout<<"INGIN TAU LUAS DAN KELILING LINGKARAN...??"<<endl<<endl;
cout<<"Masukkan JARI-JARI = ";
cin>>r;

luas= phi*r*r;
keliling= 2*phi*r;

cout<<"jadi hasilnya adalah....."<<endl<<endl;
cout<<"LUAS LINGKARAN = "<<luas<<endl;
cout<<"KELILING LINGKARAN = "<<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