#include <iostream.h>
int main ()
{
int i;
i=1;
while (i<=10)
{
cout<<i<<endl;
i=i + 1;
}
return 0;
}
Rabu, 13 April 2011
contoh program while do c++
Langganan:
Posting Komentar (Atom)
My place to share everything
#include <iostream.h>
int main ()
{
int i;
i=1;
while (i<=10)
{
cout<<i<<endl;
i=i + 1;
}
return 0;
}
0 komentar:
Posting Komentar