program nama
#include <iostream.h>
#include <conio.h>
main()
{
char nama[80];
int tombol;
ulangi:
clrscr();
cout<<"============================="<<endl;
cout<<"Masukkan nama anda=";
cin>>nama;
cout<<"============================="<<endl;
cout<<"Halo "<<nama<<endl<<endl;
cout<<"apakah mau mengulangi(Y/T)?:";
tombol=getch();
while(tombol=='Y'||tombol=='y')
goto ulangi;
cout<<endl<<endl;
cout<<"=============================";
cout<<"selesai";
cout<<"=============================";
getch();
}
Comments
Post a Comment