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