C++ Ganjil Genap

#include<iostream>
#include<conio.h>
int main(){
int bil;
cout<< "   ====================\n";
cout<< "   ==> GANJIL-GENAP <==\n";
cout<< "   ====================\n\n";
cout<< " Masukkan Sebuah Angka: ";
cin>> bil;
cout<<""<<endl;
if ((bil%2)==0){
cout<< " "<<bil<<" adalah bilangan GENAP\n";
}else{
cout<< " "<<bil<<" adalah bilangan GANJIL\n";
}
getch();
}

0 Response to "C++ Ganjil Genap"

Posting Komentar