Minggu, 21 Oktober 2012

program menghitung jari-jari lingkaran

// program 2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"


int _tmain(int argc, _TCHAR* argv[])
{
    return 0;
}

#include <iostream>
using namespace std;

int main()
{
    int r;
    float luas;
    const double pi=3.14;

    cout<<"MASUKAN JARI-JARI LINKARAN : "; cin>>r;

    luas=pi*r*r;
    cout<<"LUAS LINGKARAN ADALAH = "<<luas<<endl<<endl<<endl;

    system("pause");
    return 0;
}
















Tidak ada komentar:

Posting Komentar