Monday, June 11, 2018

contoh program while do bahasa c++

contoh program while do

#include <iostream>
#include <conio.h>
#include <stdio.h>

using namespace std;

main()
{
int counter = 0;
do

{
if(counter%2==1)cout << endl << "c++"
<< counter << endl;
counter++;

}
while (counter<15);
getch();
}

Labels: , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home