# Program to perform all arithmetic operations in C++

This is our new tutorial for the C++ beginners. C++ program to perform all arithmetic operations.This program take the two values from the user and display their sum, difference, product, quotient, and reminder. This program requires Dev C++ to run properly. Follow the source code given bellow.

#include<iostream> /*Theteknek.com*/

using namespace std;

int main()

{

int sum,pro,mod,sub,div,n1,n2; /*Declair Integer type Variables*/

cout<<“Enter 1st number :”; cin>>n1;

cout<<“Enter 2nd number :”; cin>>n2;

sum=n1+n2;

pro=n1*n2;

sub=n1-n2;

mod=n1%n2;

div=n1/n2;

cout<<“Sum is = “<<sum<<endl;

cout<<“Product is = “<<pro<<endl;

cout<<“Subtract is = “<<sub<<endl;

cout<<“Reminder is = “<<mod<<endl;

cout<<“Quotient is = “<<div;

return(0);

}

Here is the output of the program.

Write A C++ Program To Use All Arithmetic Operators. by Dinesh Thakur. #include #include void main() { int a,b,c,d,e,f,g; clrscr();Try the following example to understand all the arithmetic operators available in C++. Copy and paste the following C++ program in test.cpp file and compile and …This is a simple C and C++ program to perform Arithmetic Operations like Addition, Subtraction, Multiplication, Division and for finding Remainder of two given integers. This program uses a Switch-case to determine which operation to perform. … C++ Program to implement Flight …C++ Program to perform all arithmetic calculation using switch case. #include #include. void main() { clrscr(); float a,b,res; int ch,q;This post contains the c++ example code for performing arithmetic operations. In this example, each arithmetic function is explained using …