C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
//Basic Calculator
void menu();
int sum (int a,int b);
int sub (int a,int b);
int mul (int a,int b);
float div (int a,int b);
unsigned long int fact (int a);
int main() {
menu ();
char option;
int a,b;
scanf("%c",&option);
switch (option ){
case '1':
puts (" enter 2 numbers to be added");
scanf ("%d" , &a);
scanf ("%d", &b);
printf (" %d + %d = %d", a, b , sum (a,b) );
break ;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run