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