Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- cout << "Masukkan Bilangan Bebas = "; //masukkan bilangan bulat positif atau negatif
- cin >> x;
- cout << "Bilangan Anda adalah " << x << ", maka Bilangan tersebut adalah = ";
- if(x >= 0)
- {
- cout << "Bilangan Positif";
- }
- else
- {
- cout << "Bilangan Negatif";
- }
- cout << "\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement