Gloryaa

3_3

Sep 18th, 2022
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. main(){
  5. int x;
  6.  
  7. cout<<"Masukan nilai x : ";
  8. cin>>x;
  9.  
  10. if (x > 0){
  11. cout<<"X adalah bilangan Positif";
  12. }else if (x < 0){
  13. cout<<"X adalah bilangan Negatif";
  14. }else if(x == 0){
  15. cout<<"X adalah bilangan 0";
  16. }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment