Breaking News
recent

Program Menentukan Bilangan Genap

Ahmad Akbar Mariuddin

#include <iostream>

using namespace std;

int main()

{
int bilangan;

    cout << "Berikan Bilangan Anda : ";
    cin >> bilangan;


    if(bilangan%2==0)
        cout <<"\nBilangan Genap\n\n";
    else
        cout <<"\nBilangan Ganjil\n\n";
    return 0;
}

Septiceeye2

Septiceeye2

No comments:

Post a Comment

Powered by Blogger.