News Update :
Home » , » PROGRAM SUHU MENGGUNAKAN DEV C++

PROGRAM SUHU MENGGUNAKAN DEV C++

Penulis : Unknown on Minggu, 25 Maret 2012 | 23.10

 

Lansung saja yg di bawah ini adalah program nya. .. .
Buat teman - teman yg mau nyoba silahkan saja, oia gampang kok caranya, teman - teman tinggal copy paste saja.. .:)



#include <iostream>
#include <string>

using namespace std;
int main()
{
    system("title wahyudin");
    system("color a");
   string raptor_prompt_variable_zzyz;
   int hasil,suhu;

   raptor_prompt_variable_zzyz ="masukan : ";
   cout << raptor_prompt_variable_zzyz;
   cin >> suhu;
   cout<<endl;
   if (suhu>37)
   {
      cout<<"Panas"<<endl<<endl;
   }
   else
   {
      if (suhu<35)
      {
         cout<<"Dingin"<<endl<<endl;
      }
      else
      {
         cout<<"Normal"<<endl<<endl;
      }
   }
   cout << hasil << endl << endl;
   system("pause");
   return 0;
}

Dan yg di bawah ini adalah outputnya.. .
Oia sbagai contoh saya memasukan suhu 38 'C . .
Selamat mencoba . . . :)
  "Indah nya berbagi"



Share this article :
Comments to facebook

Posting Komentar

 
Copyright © 2011. .:: wahyudin 21 ::. . All Rights Reserved.
Design Template by panjz-online | Support by creating website | Powered by Blogger