Powered by Blogger.

Shopping Cart Details


Order Details Amount
GRAND TOTAL:

Please choose a checkout option.
No personal data required.

Send in Orders

It's Quick & Easy! Details here will not be published.

Please include messages to us here.

Checkout

Popular Posts

Flowchat dan Program Mencari Keliling dan Luas Lingkaran

  

Algoritma Pemograman - Flowchat dan Program Mencari Keliling dan Luas Lingkaran | Postingan kali ini saya share tentang Permasalahan Mencari Keliling dan Luas Lingkaran. Ketentuan yang harus dipenuhi yaitu :
  • Input : Inputan r 
  • Proses : l = 2*phi*r; dan k = phi*r*r
  • Output : Output l dan k;
Dari ketentuan diatas pertama kita buat flowchatnya dengan bantuan software raptor, menjadi :

Dari Flochart diatas kita masukan ke salah satu kompiler, disini saya menggunakan dev C++ :


#include <iostream>
#include <string>

using namespace std;
int main()
{
   string raptor_prompt_variable_zzyz;
   float r, l, phi, k;

   cout << "Program mencari keliling dan luas lingkaran" << endl;
   raptor_prompt_variable_zzyz ="masukan jari-jari = ";
   cout << raptor_prompt_variable_zzyz << endl;
   cin >> r;
   phi =22.0/7;
   k =2*phi*r;
   l =phi*r*r;
   cout << "keliling lingkaran = "<<k << endl;
   cout << "Luas Lingkaran = "<<l << endl;
   system("pause");
   return 0;
}


No comments yet. Add your comments now!

Post a Comment




Instagram ROACH


Info Section Text