#include <iostream>
#include <conio.h>
using namespace std;
int main()
{ int am;
cout<<"Tek Kotek Kotek Kotek Anak Ayam Turun Berkotek 2x "<<endl;
cout<<"Anak ayam turunlah : ";cin>>am;
for (am; am>=2; am--){
cout<<"Anak Ayam Turunlah "<<am <<" Mati Satu Tinggallah "<<am-1<<endl;
}
cout<<"Anak Ayam Turunlah "<<am <<" Mati Satu Tinggal induknya ................ "<<endl;
getch();
return 0;
}
No comments:
Post a Comment