Download

* Menghitung Luas dan Keliling Lingkaran C++

silahkan kopas kodingya di bawah ini..........

#include <iostream.h>
#include <iomanip.h>
#include <conio.h>
void main()
{
    const float phi = 3.141592;
    float jari_jari, keliling, luas;

    cout << "Masukkan Jari-Jari (Cm) =" ; cin >> jari_jari;

    luas = phi * jari_jari * jari_jari;
    keliling = 2 * phi * jari_jari;

    cout << setprecision(5);
    cout << "Luas lingkaran adalah " << luas << " Meter\n";
    cout << "Keliling lingkaran adalah "<< keliling << " Meter\n";
    getch();
}

untuk download klik aja sini klik http://www.4shared.com/rar/bHrSXbG5/LINGKARAN.html
Share this article :
 
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. EdiHaryanto - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger