session4.c
#include <stdio.h>
// Example 1 Function Definition
// Example 2 Function Definition
// Example 3 Function Definition
// Example 4 Function Definition
// Example 5 Function Definition
// Example 6 Function Definition
// Example 7 Function Definition
// Example 8 Function Definition
// Example 9 Function Definition
// Example 10 Function Definition
// Main Function
int main() {
// Menu
printf("Menu\n");
printf("1 - Example 1\n");
printf("2 - Example 2\n");
// get choice from user
printf("Choice: ");
int choice;
scanf("%d", &choice);
// switch choices
switch (choice) {
default:
printf("Invalid input\n");
}
}
Last updated