using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int p,l,kel,luas;
cout<<"MENGHITUNG LUAS DAN KELILING PERSEGI"<<endl;
cout<<"masukan panjang : "; cin>>p;
cout<<"masukan lebar : "; cin>>l;
kel=2*p+l;
luas=p*l;
cout<<"====HASIL==="<<endl;
cout<<"luas : "<<luas<<endl;
cout<<"keliling : "<<kel;
return 0;
}
Langganan:
Posting Komentar (Atom)
Blog Archive
Diberdayakan oleh Blogger.
Categories
search
Mengenai Saya
BTemplates.com
Blogroll
Pages - Menu
Pages - Menu
Popular Posts
-
BAB 1 KOMPUTER DAN BAHASA PEMROGRAMAN 1. Buatlah program yang menampilkan biodata pribadi anda. 2. Buatlah pr...
-
#include <cstdlib> #include <iostream> #define maks5 /* run this program using the console pauser or add your own getch, system(...
-
#include <cstdlib> #include <iostream> /* run this program using the console pauser or add your own getch, system("pause...
-
#include<iostream> #include<conio.h> using namespace std; int main(int argc, char** argv) { float input,min,...
-
#include <iostream> using namespace std; void fpb(int m,int n){ int r; r = m % n; if(r != 0) { m = ...
-
Membuat algoritma untuk menentukan nilai maksimum dan minimum dari n bilangan procedure maks_min(input data : larik; n : ...
-
Daftar Isi [ hide ] 1 Kenapa memilih blogger.com? 2 Cara membuat blog di blogger.com 3 Cara posting artikel 4 Cara memasang w...
-
WORKSHOP DIKTAT BAB 7 NO 4 Diberikan class Vektor berikut ini Sebuah vektor yang disimpan menggunakan array, dapat dipandan...
-
#include <iostream> using namespace std; void baca_data(int A[], int n) { int i; for (i = 0; i < n; i++) { cout << "Data...

Tidak ada komentar:
Posting Komentar