session5p.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
// Problem 1 Function Definition
// Main Function
int main()
{
printf("Session 5 Problems");
int choice;
do
{
// Menu
printf("Menu\n");
printf("1 - Problem 1\n");
printf("2 - Problem 2\n");
printf("-1 to Quit\n");
// get choice from user
printf("Choice: ");
scanf("%d", &choice);
// switch choices
switch (choice)
{
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
}
}
while (choice != -1);
}
Last updated