Senin, 28 Maret 2016

KASUS 4.2

#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 i;
    cout<<"mencetak bilangan ganjil "<<endl;
    for(int i=0;i<=10;i++){
        if(i%2==1){
            cout<<i<<endl;
        }

    
    }
    return 0;
}

 Dengan C++

Tidak ada komentar:

Posting Komentar