session9.c

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.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


// Main Function
int main()
{
    printf("Session 9\n");
    int choice;
    do
    {
        // Menu
        printf("Menu\n");
        printf("1 - Example 1\n");
        printf("2 - Example 2\n");
        printf("-1 - 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;
            case 6:
                
                break;
            case 7:
                
                break;
            case 8:
                
                break;
            case 9:
                
                break;
        }
    }
    while (choice != -1);
}

Last updated