Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main(){
- int x;
- cout<<"Masukan nilai x : ";
- cin>>x;
- if (x > 0){
- cout<<"X adalah bilangan Positif";
- }else if (x < 0){
- cout<<"X adalah bilangan Negatif";
- }else if(x == 0){
- cout<<"X adalah bilangan 0";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment