Kamis, 24 Maret 2016

nilai ganjil,genap






Mencari Ganjil,Genap


#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
    int d;
    cout<<"masukan nilai =";cin>>d;
    if(d%2==0)
    cout<<"genap";
    else
    cout<<"ganjil";
    return 0;
}

//Hasil:



Program Raptor:


semoga bermanpaat ya 😃


 


Unknown

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 komentar:

Posting Komentar