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 Menceri Nilai Terbesar dari 2 Inputan

  

Algoritma Pemograman - Flowchat dan Program Menceri Nilai Terbesar dari 2 Inputan | Postingan kali ini saya share tentang Permasalahan Algoritma - Flowchat Mencari  Menceri Nilai Terbesar dari 2 Inputan . Ketentuan yang harus dipenuhi yaitu :
  • Input   : Inputan a,b
  • Proses : a>b out a, a<b out b
  • Output : Output a or b;
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;
   int z;
   int b;
   int a;

   while (1){
      raptor_prompt_variable_zzyz ="Nilai Pertama :";
      cout << raptor_prompt_variable_zzyz << endl;
      cin >> a;
      raptor_prompt_variable_zzyz ="Nilai Kedua : ";
      cout << raptor_prompt_variable_zzyz << endl;
      cin >> b;
      if ((a>b || b>a)) break;
      cout << "maaf nilai yang anda masukan sama" << endl;   }
   if (a>b)
   { z =a;}
   else
   {z =b;}
   cout << z << endl;
   system("pause");
   return 0;
}

No comments yet. Add your comments now!

Post a Comment




Instagram ROACH


Info Section Text