# include <iostream>
# include <conio>
int ayam;
void main ()
{
cout << "Berapa anak ayam? ";
cin >> ayam;
for (ayam; ayam >= 2 ; ayam--)
{
cout << "Anak ayam turun ke gunung,mati satu tinggal "
<< ayam-1 << "." <<endl;
}
cout << "Anak ayam turun ke gunung,mati satu tinggal induknya.";
getch();
}
0 comments:
Post a Comment