Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this prints menu for calculator
- #include <stdio.h>
- #include <stdlib.h>
- //start of menu()
- void menu(void){
- /*print menu screen*/
- clrscr();
- printf("\t\t\t***********************************\n");
- printf("\t\t\t** WELCOME TO SIMPLE CALCULATOR **\n");
- printf("\t\t\t***********************************\n");
- printf("\t\t\t SKS \n");
- printf("\t\t\t***********************************\n");
- printf("\t\t\t\t\tMENU\n\n\n");
- printf("\t\t\t\t1-ADDITION\n");
- printf("\t\t\t\t2-SUBSTRACTION\n");
- printf("\t\t\t\t3-MULTIPLICATION\n");
- printf("\t\t\t\t4-DIVISION\n");
- printf("\t\t\t\tE-to exit at any time.\n\n\n");
- printf("\t\t\t***********************************\n\n\n");
- }//end of menu
Add Comment
Please, Sign In to add comment