How to Create a Simple Calculator using C++ Programming Language

preview_player
Показать описание
In this video tutorial you will learn How to create a simple Calculator Programming using C++ Programming Language.
This video is well suited for the beginners.

The Calculator programming created here will first display the menu option to the user.
user can select the operation that he wants to perform.
( Addition, Subtraction, Multiplication, Division)
Then we take two numbers as input from the user
and then we display the result.

our Social Media Pages

Our Website

#ExampleProgram
Рекомендации по теме
Комментарии
Автор

This is so useful, It's great for my coding homework😂

garuutube
Автор

Thank you Soo much
Your explanation is really good and it's clear enough to understand

TuaMeehr
Автор

Its very useful for beginners like me❤️

RaghuRam-obhj
Автор

You explanation is good... could you do video on javascript 👍

hi-yien
Автор

Thank for the Vid. I am using code blocks and I just completed coding. It doesn't show any errors but won't run

chikwashakalunga
Автор

Is it possible to make a calculator using if/else statements?

Mahir_uc
Автор

How can I do that? I mean where? where can I do programming, I wanna learn

animaefightingsimulatorrob
Автор

hii, how would u write out the % operand

faiharatu
Автор

Please make a guide for programing on college

shadmanshaikh
Автор

Can u please give the link where to download this c++ kindly???

EMEsports-cevf
Автор

# include <iostream>
using namespace std;
int main()
{
double num1, num2;
char op;

cout<<"enter the operator(+ - * /) :";
cin>>op;
cout<<"enter the two number one by one :";
cin>>num1>>num2;

switch (op)
{
case '+':

break;

case '-':

break;

case '*':

break;

case '/':
if (num2==0.0)
{
cout<<"divide by zero situation"<<endl;

}
else
{



}
break;
default:
cout<<"invalid operator"<<endl;
}




return 0;

sana_mehndi_art
Автор

Jani case aur break ma error aa raha hy

EMEsports-cevf