Quantcast
Channel: C
Viewing all articles
Browse latest Browse all 46

Calculator program in C

$
0
0
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.
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...
Calculator program in C

Viewing all articles
Browse latest Browse all 46

Latest Images

Trending Articles



Latest Images