diff options
author | smlckz <smlckz@college> | 2021-12-22 14:56:13 +0530 |
---|---|---|
committer | smlckz <smlckz@college> | 2021-12-22 14:56:13 +0530 |
commit | b73983c3717642ca10e7cfe93d97609adc377da9 (patch) | |
tree | a6e9fe4c27e3caa215f8aefa9265fb52f6de4375 /assignments/23-basic-calculator.c | |
download | college-b73983c3717642ca10e7cfe93d97609adc377da9.tar.gz |
backup
Diffstat (limited to 'assignments/23-basic-calculator.c')
-rw-r--r-- | assignments/23-basic-calculator.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/assignments/23-basic-calculator.c b/assignments/23-basic-calculator.c new file mode 100644 index 0000000..203fdf8 --- /dev/null +++ b/assignments/23-basic-calculator.c @@ -0,0 +1,23 @@ +#include <stdio.h> + +int menu_option(char *choice) +{ + printf( + "Basic Calculator\n" + "================\n" + "Menu:\n" + " + Add\n" + " - Subtract\n" + " * Multiply\n" + " / Divide\n" + " q Quit\n\n" + ); +} + +int main(void) +{ + char *choice; + menu_option(&choice); + return 0; +} + |