C++ BILANGAN POSITIF/NEGATIF DARI 3 BUAH BILANGAN

oke disini akan dijelaskan program C++  sederhanan yang menunjukkan 3 buah bilangan

PROGRAM

#include <iostream>
using namespace std;

main(){
int a,b,c;
cout<<"Input ANGKA-1: ";
cin>>a;
cout<<"Input ANGKA-2: ";
cin>>b;
cout<<"Input ANGKA-3: ";
cin>>c;
cout<<"ANGKA-1 = "<<a<<" adalah GANJIL"<<endl;
cout<<"ANGKA-2 = "<<b<<" adalah GENAP"<<endl;
cout<<"ANGKA-3 = "<<c<<" adalah GANJIL"<<endl;
return 0;
}

OUTPUT


Komentar