How to make a c++ programming for basic arithmetic operations by the simple method?
How to make basic arithmetic operations in c++ programming
using namespace std;
float a, b, add, sub, multi, div;//Input Frist Number
cout << “Please Enter the Frist number: “;
//Outout Second Number
cout << “Please Enter the Second number: “;
//Basic Airthmatic Operation logics
add = a + b;
sub = a – b;
multi = a*b;
div = a / b;
Please Enter the Frist number: 5
Please Enter the Second number: 4
Airthmatic Operations Result:-
5 + 4 = 9
5 – 4 = 1
5 * 4 = 20
5 / 4 = 1.25
I make this programming and hope you are like the post if are you like the post you can please comment and Share the post to reach more people.
If any dought about this c++ programming code or input & output please comment below
If you have other question about c++ programming send an email by contacting us form are given on page right side.