Tugas
0

Perulangan

Selasa, 11 Oktober 2016
Share this Article on :
#include

/* 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 nilai_awal=1;
int batas=10;
for(nilai_awal; nilai_awal<=batas; nilai_awal++){
cout<<"Hello world = "< }
cout<<"+++++++++++++++++++++++++++++++++++++++++++"< for(int i=1; i<=10; i++){
if(i%2 == 0)
cout<<"Hello world = "<}
cout<<"+++++++++++++++++++++++++++++++++++++++++++"<//while
nilai_awal=1;
while(nilai_awal<=0){
  nilai_awal++;
cout<<"Hello world = "<nilai_awal++;
}
cout<<"+++++++++++++++++++++++++++++++++++++++++++"<//do while
nilai_awal=1;
do{
cout<<"hello hello="<
nilai_awal++;
}while (nilai_awal<=0);


return 0;
}


Artikel Terkait:

0 komentar:

Posting Komentar