#include <iostream.h>
#include <conio.h>
void main ()
{
int banyakayam;
int i;
cout<<"masukan jumlah anak ayam :";
cin>>banyakayam;
for (i=banyakayam;i>=1; i--)
{
cout<<i<<" Anak ayam ada "<<i<<", mati satu tinggal "<<i-1<<endl;
}
getch();
}
Sign up here with your email
ConversionConversion EmoticonEmoticon