C Program to Make a Simple Calculator Using switch case






Write a C program to Make Simple calculator.
Write a program and call it calculator.c which is the basic calculator and receives three values from input via keyboard.

  • The first value as an operator (Op1) should be a char type and one of (+, -, *, /, s) characters with the following meanings:1 ‘+’ for addition (num1 + num2)
    2 ‘-’ for subtraction (num1 – num2)
    3 ‘*’ for multiplication (num1 * num2)
    4 ‘/’ for division (num1 / num2)
  • Program should receive another two operands (Num1, Num2) which could be float or integer.
  • The program should apply the first given operator (Op1) into the operands (Num1, Num2) and prints the relevant results with related messages in the screen.

 


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


Stuff I use to make videos

Windows notebook – http://amzn.to/2zcXPyF

Apple MacBook Pro – http://amzn.to/2BTJBZ7

Desktop - http://amzn.to/2zct252

Microphone – http://amzn.to/2zcYbW1

notebook mouse – http://amzn.to/2BVs4Q3

Screen Recording Software – Camtasia