sintax perulangan while di C++

//perulangan while
#include
#include
main()
{
int n;
cout<<"masukkan angka untuk mulai : "; cin>>n;

while (n>0)
{
cout<<<",";
--n;
}
cout<<"stop!";
getch();
}

0 comentários:

My Instagram

E-mail: liridwan85@gmail.com | Phone: +62 812 387 011 47