Nested IF (C++) arlicious Sunday, March 03, 2013 arlicious Program Penjualan Tiket Konser dengan C++ //File Header #include #include #include #include // fungsi untuk menampilkan loading sementara void loading() { cout<>kdkonser; ulangjenis: cout<>tiket; //Percabangan if (kdkonser=='1') { strcpy(judul,"Java Jazz Festival"); if (tiket=='1') {harga=50000; strcpy(jenis,"Tribune");} else if (tiket=='2') {harga=75000; strcpy(jenis,"VIP");} else if (tiket=='3') {harga=100000; strcpy(jenis,"VVIP");} else { cout<<"==========================================="<>jumlah; total=jumlah*harga; if (jumlah>5) {diskon = 0.1*total ;} else {diskon = 0 ;} totalbyr=total-diskon; //Output clrscr(); cout<<"================================================"<>uangbyr; if (uangbyr < totalbyr) { cout<>lagi; if (lagi=='Y' || lagi=='y') {goto atas;} else if (lagi=='N' || lagi=='n') clrscr(); cout< Download Via 4Shared or Mirror Tweet Share Share Share Share About Arlicious This is dummy text. It is not meant to be read. Accordingly, it is difficult to figure out when to end it. But then, this is dummy text. It is not meant to be read. Period. Related Post
1 comments:
Click here for commentsgila lu min bener bener gila ! hahaha tnks bro