Minggu, 20 Maret 2016

kasus 4.2 minggu ke 4

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) {
    for(int i=0;i<=10;i++)
    {
        if(i%2==1)
        cout<<i<<endl;
    }
    int i=1;
    while(i<=10)
    {
        if(1%2==1)
        cout<<i<<endl;
        i++;
       
    }
    do {
        if(i%2==1)
        cout<<i<<endl;
        i++;
    }
    while(i<=10);
   

   
    return 0;
}

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