Blogroll

Tuesday, 14 October 2014

CODING C++ (Menghitung Luas Lingkarang)

07:34

#include<iostream>
using namespace std;
int main ()
{
   int r,luas,keliling;
   cout<<"Menghitung Keliling&Luas Lingkaran!"<<endl;

   cout<<"Masukkan Jari-Jari Lingkaran:";
   cin>>r;

   Keliling= 2*3.14*r;
   cout<<"Keliling:"<<Keliling<<endl;
   Luas= 3.14*r*r;
   cout<<"Luas:"<<Luas<<endl;
}

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

Powered by Blogger.

 

© 2013 BELAJAR LAGI. All rights resevered. Designed by Templateism

Back To Top