Contoh Program Perulangan Do While pada C++
#include
<iostream>
using namespace std;
int main ()
{
int z = 10;
do
{
cout
<<"Nilai z: " << z << endl;
z = z + 1;
}
while (z < 20);
return 0;
}
Comments
Post a Comment