The below code is a calculator in plain C. It does not take into account the operability of bodmas but just one operation at a time.
The main thing in the source code below in the scanf which scans the input as number symbol number just as in case of normal calculator.
Calculator program in C
The main thing in the source code below in the scanf which scans the input as number symbol number just as in case of normal calculator.
Code:
#include<stdio.h> float add(float,float); float sub(float,float); float product(float,float); float divide(float,float); void main() { float n1,n2; char sym,choice; printf("This Program is a...