Rabu, 02 November 2016


Cara Menentukan Bilangan Positif dan Negatif
Dibawah ini merupakan Coding untuk Menentukan Bilangan Positif dan Negatif dengan Code Bloks 


#include <iostream>

using namespace std;

int main()
{
    double x;
    cout << "\n\n";
    cout << "\t\t ===== MENENTUKAN BILANGAN POSITIF DAN NEGATIF ===== \n\n";
    cout << " ===>> MASUKAN BILANGAN : ";
    cin >> x;
    cout << endl;

    if (x >=0)
    {
      cout << "BILANGAN YANG ANDA MASUKAN : " << x << endl;
        cout << "TERMASUK KEDALAM BILANGAN POSITIF" << endl;
    }

    else
    {
       cout << "BILANGAN YANG ANDA MASUKAN : " << x << endl;
        cout << "TERMASUK KEDALAM BILANGAN NEGATIF" <<endl;
    }

    return 0;
}

Download File Tugasnya DISINI
Download File Tugas

0 komentar:

Posting Komentar

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.