google-site-verification=C_rXmwzhIbKm7ffq5MkVWFUQam5H0kk2mgHJLuASTQw

Rabu, 04 Maret 2015

TUGAS PRAKTIKUM ALGORITMA DERET menggunakan bahasa pemograman c++

#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

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hostgator Discount Code