Membuat Aplikasi Menghitung Luas Lingkaran DI Code Blok (C++)







#include <iostream>

using namespace std;


int main()
{
    cout << "\n..By : Riyan Meidy Prayoga.." << endl << endl << "\n";

    cout << "\t----------** MENGHITUNG LUAS LINGKARAN **----------\n\n" << endl;
    double PHI=3.14 ,r;

    cout << "\t\tMasukan Jari-jari Lingkaran : "; cin >> r ;

    cout << "\n";
    cout << "\n\n\t\t----------** JAWABAN **----------\n\n" ;
    cout << "\t\t-> Jari-jari Lingkaran : " << r ; cout << " cm\n";
    cout << "\t\t-> MAKA LUAS LINGKARAN : " << PHI*r*r; cout << " cm2";

    cout << "\n\n\t--------------------** SELESAI **--------------------\n\n" << endl;

    return 0;
}

0 comments:

Copyright © 2013 Dunia I.T Dinasty