Selamat Datang Di Blogg Saya

Jumat, 05 November 2010

menghitung LUAS JARI-JARI

list program


#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])

    int phi,r,hasil;
    phi = 3.14;
    cout << "masukan nilai r: "<<endl;
    cin >> r;
    hasil = 3*phi*r*r;
    cout << "hasil jari jari = "<<hasil<<"\n";   
    system("PAUSE");
    return EXIT_SUCCESS;
 }

output program

0 comments:

Posting Komentar