Sabtu, 26 Maret 2016

Kasus 4.2 Alpro

Dev C++

#include <iostream>
using namespace std;

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
    int i;
    for(i=0;i<=10;i++){
        if(i%2==1){
            cout<<i<<",";
        }
    }
    return 0;
}

 Raptor

Tidak ada komentar:

Posting Komentar