#include<iostream.h>
#include<conio.h>
void main()
{
int n;
char x;
awal:
clrscr();
cout<<"****TUGAS PRAKTIKUM ALGORITMA****"<<endl<<endl;
cout<<":::Masukkan ANGKA Pilihan(1/2):::"<<endl; cin>>n;
if(n==1)
{
cout<<"A=54321"<<endl;
}
else
if(n==2)
{
cout<<"B=12345"<<endl;
}
else
cout<<"Masukkan Anda Salah, harusnya 1 atau 2!!"<<endl;
getch();
cout<<"Ulangi lagi (Y/t) :";
cin>>x;
if(x=='Y' || x=='y')
goto awal;
else
cout<<endl;
cout<<"Andik Hendrawan."<<endl;
cout<<"NPM = 110403010015"<<endl;
getch();
}
0 komentar:
Posting Komentar