Minggu, 20 Maret 2016

Kasus 3.2

tugas kali ini saya di minta menetukan bilangan terbesar di antara 3 bilangan

ini inputan C++

#include <iostream>
#include <string>

using namespace std;
int main()
{
   int b;
   int c;
   int a;

   cout<<"masukan bilangan pertama : ";
   cout<<endl;
   cin >> a;
   cout<<"masukan bilangan kedua : ";
   cout<< endl;
   cin >> b;
   cout<<"masukan bilangan ketiga : ";
   cout<< endl;
   cin >> c;
   if (a>b)
   {
      cout << a<<" adalah bil terbesar" << endl;   }
   else
   {
      if (b>c)
      {
         cout << b<<" adalah bil terbesar" << endl;      }
      else
      {
         cout << c<<" adalah bil terbesar" << endl;      }
   }

   return 0;
}

hasilnya



ini raptornya
hasil raptornya




0 komentar:

Posting Komentar

Posting Lebih Baru Posting Lama Beranda

Diberdayakan oleh Blogger.

About us

Formulir Kontak

Nama

Email *

Pesan *

Find Us On Facebook

Translate

Popular Posts

Video Of Day

About

TechClue

Techclue Is A Multi layout Style Blogger Template. You Can Use This Template For Education Site As Well As For Simple Magazine Sites. Techclue Is The Perfect Combination Of Design.We install Lots Of Features Like Responsive Layout, SEO Optimization Etc.

Join Our Community!

Popular Posts

Recent Posts

Popular Posts

 

Followers

 

Flickr Gallery

Templates by Nano Yulianto | CSS3 by David Walsh | Powered by {N}Code & Blogger