Sabtu, 09 April 2016

Bab 5 #kasus 5.2

kasus 5.2

PROGRAM C++:
#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) {
    for(int i=1;i<=10;i++){
        if(i%2==0){
            cout<<i<<"  genap"<<endl;
        }
        else
        cout<<i<<"  ganjil"<<endl;
    }
    return 0;
}

//HASIL PROGRAM DI ATAS:

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