Dibaca sebuah bilangan bulat tampilkan apakah bilangan tersebut ganjil atau genap?
Program C++
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int a, b;
cout<<"masukkan bilangan :";cin>>a;
if(a % 2==0)
cout<<"genap";
else
cout<<"ganjil";
return 0;
}
Logikannya Menggunakan Raptor ComingSon
ABOUT THE AUTHOR
A web designer from India. And then you write some more information about yourself like this to fill out the space that is left.

0 komentar:
Posting Komentar