C program for Simple Calculator

In this tutorial you will learn about the C program for Simple Calculator and its application with practical example.

C Program for Simple Calculator

In this tutorial, we will learn to create a C program. After that, will perform Simple Calculator in C programming.

Prerequisites

Before starting with this tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C Programming.
  • Switch Case in C programming

Program for Simple Calculator:- 

In today’s tutorial, we will create a program. That will do the Addition, Subtraction, Multiplication, and Division operations with the help of Arithmetic operators in C programming.

Algorithm:-

Program Code:-

Output:-

In the above program, we have first initialized the required variable.

  • op = it will hold the input character value from the user.
  • first = it will hold the input number value from the user.
  • second = it will hold the input number value from the user.

Taking Input numbers from the user.

Performing simple calculations.

Printing the output.

In this tutorial we have learn about the C program for Simple Calculator and its application with practical example. I hope you will like this tutorial.