1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: #include <iostream> using namespace std; int main(){ int nilai; string jenis; cout<<"masukkan nilai="; cin>>nilai; if(nilai>0){ jenis= "bilangan positif"; }else if(nilai<0){ jenis="bilangan negatif"; }else if (nilai==0){ jenis="bilangan nol"; } cout<<"nilai anda="<<nilai<<endl; cout<<"merupakan"<<jenis<<endl; return 0; } 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: #include <iostream> using namespace std; int main(){ int nilai; cout<<"masukkan angka="; cin>>nilai; if(nilai%2==0){ cout<<"bilangan genap"; }else{ cout<<"nilangan ganjil"; }return 0; }