For Looping
For Looping
system ("PAUSE"); }
system ("PAUSE"); }
2. While Looping
system ("PAUSE"); }
3. Do While Looping
else {cout<<n<<" = ";} n--; } while (n>=1); cout<< nfak << endl;
system ("PAUSE"); }
4. Continue Statement
system ("PAUSE"); }
5. Break Statement
system ("PAUSE"); }
6. Goto Statement
int main ()
Tugas Tambahan
cout<<"
''Selamat Mencoba''\n";
cout<<"\nMasukan Banyak Deret yang Anda inginkan : "; cin>>n; cout<<endl; if(n<2) { cout<<"\nBanyak Deret Harus Lebih dari 1 "; goto akhir; }
akhir: