ChaturBauka

menu.c

Jan 8th, 2019
45
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //this prints menu for calculator
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. //start of menu()
  5. void menu(void){
  6.   /*print menu screen*/
  7.            clrscr();
  8.            printf("\t\t\t***********************************\n");
  9.            printf("\t\t\t** WELCOME TO SIMPLE CALCULATOR **\n");
  10.            printf("\t\t\t***********************************\n");
  11.            printf("\t\t\t             SKS \n");
  12.            printf("\t\t\t***********************************\n");
  13.            printf("\t\t\t\t\tMENU\n\n\n");
  14.            printf("\t\t\t\t1-ADDITION\n");
  15.            printf("\t\t\t\t2-SUBSTRACTION\n");
  16.            printf("\t\t\t\t3-MULTIPLICATION\n");
  17.            printf("\t\t\t\t4-DIVISION\n");
  18.            printf("\t\t\t\tE-to exit at any time.\n\n\n");
  19.            printf("\t\t\t***********************************\n\n\n");
  20. }//end of menu
RAW Paste Data