Paid To Click (PTC) yang Direkomendasikan : Neobux | Palmbux | HKbuzz | Duitbux | Tips Berikutnya »

Home » C++ » Pemrograman » Tips dan Trik » Currently Reading:

Source Code C++ Mengetahui Volume Tabung dan Luas Tabung

January 6, 2009 C++, Pemrograman, Tips dan Trik 2 Comments

cplusplus Source Code C++ Mengetahui Volume Tabung dan Luas Tabung

Biasa..baru dapet ilmu baru.. Kali ini tentang source code c++ tentang mengetahui colume dan luas tabung. Berikut adalah source codenya :

#include <conio.h>

#include <iostream.h>

#include <iomanip.h>

void main ()

{

const float phi=3.141592;

float jari_jari_lingkaran, tinggi_tabung, keliling_tabung, luas_sisi_persegi, luas_sisi_tabung, luas_alas_tabung, volume_tabung;

clrscr();

cout << “Masukan jari-jari lingkaran tabung : “;

cin >> jari_jari_lingkaran;

cout << “Masukan tinggi tabung : “;

cin >> tinggi_tabung;

keliling_tabung=phi*2*jari_jari_lingkaran;

luas_sisi_persegi=keliling_tabung*tinggi_tabung;

luas_alas_tabung=phi*jari_jari_lingkaran*jari_jari_lingkaran;

volume_tabung=luas_alas_tabung*tinggi_tabung;

luas_sisi_tabung=luas_sisi_persegi+(2*luas_alas_tabung);

cout << setprecision(5);

cout << “Volume tabung tersebut adalah : ” << volume_tabung << “satuan volumen”;

cout << “Luas sisi tabung tersebut adalah : ” << luas_sisi_tabung << “satuan luasn”;

getch();

}

Mudah kan? Anda bisa mengganti const float phi=3.141592; menjadi #define phi 3.141592 di atas void main(), ada yang ingin menambahkan?

Anda Menyukai Artikel di Blog Ini? Masukkan Alamat Email Anda untuk Berlangganan:


Artikel Populer

Artikel yang Berkaitan :


Hasil Pencarian:

volume tabung . contoh source code c . contoh coding c . luas dan volume tabung . volum tabung . contoh source code program c . luas volume tabung . luas tabung . contoh coding iostream . contoh code c . VOLUME SILINDER . code volume c . volume luas tabung . volumetabung . volume tabung tabung . mencari volume tabung . volume tabung di program c . volume tabung c . mengetahui luas dan volume . program c luas tabung .

Tags : , , , , , , , , ,

Currently there are "2 comments" on this Article:

  1. pak gimana menjadi programer yang handal ?
    makasi ya -pak atas contoh source code tugas ku jadi kelar trus,..

  2. pak bisa minta cara buat program virus sederhana ./

Search This Site:

Play Online Games !!

Adventure Online Game Puzzle Online Game
Sport Online Game Strategy Online Game
nowGoogle.Com SEO Challenge

Sponsor

Friends




Connections

Status

Dofollow Blog Internet Sehat

Polls

Platform CMS Favorit Para Blogger

View Results

Loading ... Loading ...

Translator

Comment on this Article:







CommentLuv Enabled

Kategori

Arsip Seluruh Artikel

Arsip