#include <iostream.h>
#include <conio.h>
#include <stdio.h>
main () {
int pilihan ;
char jawab (1) ;
awal :
cout <<"PILIHAN ZODIAK :" << endl ;
cout <<"1. Capricorn "<< endl ;
cout <<"2. Aquarius "<< endl ;
cout <<"3. Pisces "<< endl ;
cout <<"4. Aries "<< endl ;
cout <<"5. Taurus "<< endl ;
cout <<"6. Gemini "<< endl ;
cout <<"8. Cancer "<< endl ;
cout <<"9. Leo "<< endl ;
cout <<"10.Virgo "<< endl ;
cout <<"11.Libra "<< endl ;
cout <<"12.Scorpio "<< endl ;
cout <<"13.sagitarius "<< endl ;
cout << "Masukan Zodiak Anda:";cin >> pilihan ;
switch (pilihan){
case 1:
cout <<"bintang 1" ;
break ;
case 2:
cout <<"bintang 2" ;
break ;
case 3:
cout <<"bintang 3" ;
break ;
case 4:
cout <<"bintang 4" ;
break ;
case 5:
cout <<"bintang 5" ;
break ;
case 6:
cout <<"bintang 6" ;
break ;
case 7:
cout <<"bintang 7" ;
break ;
case 8:
cout <<"bintang 8" ;
break ;
case 9:
cout <<"bintang 9" ;
break ;
case 10:
cout <<"bintang 10" ;
break ;
case 11:
cout <<"bintang 11" ;
break ;
case 12:
cout <<"bintang 12" ;
break ;
case 13:
cout <<"bintang 13" ;
break ;
default:
clrscr ();
}
cout <<"\n\n Ingin melihat zodiak yang lain ? (Y/T)";cin >> jawab ;
if (jawab=='Y')
{
clrscr ();
goto awal;
}}
#include <conio.h>
#include <stdio.h>
main () {
int pilihan ;
char jawab (1) ;
awal :
cout <<"PILIHAN ZODIAK :" << endl ;
cout <<"1. Capricorn "<< endl ;
cout <<"2. Aquarius "<< endl ;
cout <<"3. Pisces "<< endl ;
cout <<"4. Aries "<< endl ;
cout <<"5. Taurus "<< endl ;
cout <<"6. Gemini "<< endl ;
cout <<"8. Cancer "<< endl ;
cout <<"9. Leo "<< endl ;
cout <<"10.Virgo "<< endl ;
cout <<"11.Libra "<< endl ;
cout <<"12.Scorpio "<< endl ;
cout <<"13.sagitarius "<< endl ;
cout << "Masukan Zodiak Anda:";cin >> pilihan ;
switch (pilihan){
case 1:
cout <<"bintang 1" ;
break ;
case 2:
cout <<"bintang 2" ;
break ;
case 3:
cout <<"bintang 3" ;
break ;
case 4:
cout <<"bintang 4" ;
break ;
case 5:
cout <<"bintang 5" ;
break ;
case 6:
cout <<"bintang 6" ;
break ;
case 7:
cout <<"bintang 7" ;
break ;
case 8:
cout <<"bintang 8" ;
break ;
case 9:
cout <<"bintang 9" ;
break ;
case 10:
cout <<"bintang 10" ;
break ;
case 11:
cout <<"bintang 11" ;
break ;
case 12:
cout <<"bintang 12" ;
break ;
case 13:
cout <<"bintang 13" ;
break ;
default:
clrscr ();
}
cout <<"\n\n Ingin melihat zodiak yang lain ? (Y/T)";cin >> jawab ;
if (jawab=='Y')
{
clrscr ();
goto awal;
}}
Post a Comment