How bout if I change it to this
Code:
#include<stdio.h>
void menu(void);
int choice, choice2;
main()
{
menu();
}
void menu(void)
{
int selection1 = 0;
do
{
int choice = 0;
puts("\n\n\t-----Solar Airways-----");
puts("\n");
puts("\n\t1. Reserve Ticket");
puts("\n\t2. View Seats");
puts("\n\t3. Quit\n");
puts("\n\tEnter a selection: [1/2/3]");
scanf_s("%d", &choice);
}
while (choice < 1 || choice > 3);
selection1 = choice;
while (selection1>= 1 && selection1<= 3)
{
if (selection1 == 1)
{
printf("hi")
}
if (selection1 == 2)
{
printf("good")
}
}
}