#include"stdio.h" #include"conio.h" #include"dos.h" main() { clrscr (); gotoxy(30,2); printf("DOMINGO KIM NICOLE V."); gotoxy(30,1); printf("ACT 1C1"); getch(); return 0; } { menu: clrscr (); int num; gotoxy(30,9); printf(" WELCOME"); gotoxy(30,8); printf("choose what you want to perform"); gotxy(30,7); printf("[1] looping"); gotoxy(30,6); printf("[2] sequential") gotxy(30,5); printf("[3] conditional"); gotoxy(30,4); printf("enter your choice:"); scanf("%d",&num); if (num==1) { goto loop; } else if (num==2) { goto seq; } else if (num==3) } goto con; } else { printf("invalid input"); getch (); goto menu; }
{ menu:
void do_menu() { menu: //your stuff }//closing of do_menu()
main
main() { clrscr (); gotoxy(30,2); printf("DOMINGO KIM NICOLE V."); gotoxy(30,1); printf("ACT 1C1"); getch(); menu: clrscr (); int num; gotoxy(30,9); ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)