Calculator program Using C++ Programing 🔥

preview_player
Показать описание
Calculator program Using C++ Programing 🔥

➤Previous Video's▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼

C++ Program To Check Number is Even Or Odd 🔥

C++ Program To Add Two Number

➤My Gears▼▼▼▼▼▼▼▼▼▼▼

MOBILE : Realme 2 Pro
MIC : Boya M1

➤Don't Forget.........LIKE SHARE & SUBSCRIBE👍↗️

➤Your Quries▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
check number is even or odd,
check number is even or odd in python,
python program to check number is even or odd,
java program to check number is even or odd,
check number is even or odd in java,
shell script to check number is even or odd,
javascript program to check number is even or odd,
write a program to check number is even or odd,
check if a number is even or odd c++,
C++,
c++ program,
c++ programs,
c++ programming language,
c++ programs for practice,
simple c++ program,
c++ programiz,
c++ program to add two numbers,
c++ programming examples
Рекомендации по теме
Комментарии
Автор

Watching ppl code is surprisingly helpful

DrizzyB
Автор

isnt <stdio.h> a c library not a cpp lobrary

canoshit
Автор

there is no need to include<stdio.h>

ensidecode
Автор

Me who made my calculator with if else 😂

Kanak_Bodkhe
Автор

Please use words like operand 1, operand 2 and operation, instead of just a, b, c..

jaypatel
Автор

If in use #include<cmath> you can use sin() or cos() and pow()

dragone
Автор

If you want to get deeper into calculations with integers, try to write your own integer. It will definitely shows you what happens behind it and you will learn how to write your own operators. Also it will confront you with topics like optimization and standards for fixed point arithmetics.

Please keep in mind that the normal integer will probably still be better even if you have optimized tf out of yours so you shouldn’t really use them in your own projects, never then less it will teach you a shit tone of things depending on your level.

insertnamehere
Автор

It’s good that you changed at least a little what is on Microsoft’s website. damn programming genius

_G_R_
Автор

In which site u r writing this code and executing plz tell ..

cinemaclips
Автор

you should never include C headers <stdio.h> on C++ files, use <cstdio> instead, and you didn't use the stdio functions so you can just remove it, also the "using namespace std;" is a bad practice, and, try to return values for a more efficient code. nice vid btw 👍

MINECANGI
Автор

I can do in 15 lines using recursive and can take any number of input user wants with operators

Still for starting we have also done same thing

seemashaikh
Автор

its actally really easy with a bit of repetitive if and else if by declarin a char variable and use it to determine the operator

Barrtholomeww
Автор

Sir i made the same thing as I'm the very beginner so how can i give the input here

m.haseeb
Автор

Op "/ " return float not int!

ballabadr
Автор

Bhai sirf + - ni hota h Percentage root sab bhi hota h banna h to pura acha se banao 😂😂

SaurabhSingh-jdrx
Автор

Bhai theme bahut badhiya lag Raha hai Kaun sa extension use Kiya hai

BOSS
Автор

bro tryharding hard to type fastest in the world 💀

pje_
Автор

There's no need for the 2nd void function lmao

hassaniq
Автор

code:
#include <iostream>

long long a, b;
using namespace std;

void getData()
{
std::cout << "Enter the first two numbers" << std::endl;
std::cin >> a >> b;
}

void Calculator()
{
char Operators;
std::cout << "Enter operators (+ - (* or ×) and (/ or ÷))" << std::endl;
std::cin >> Operators;
switch (Operators)
{
case '+':
{
std::cout << "The sum is " << a + b << std::endl;
}
break;
case '/':
{
std::cout << "The quotient is " << a / b << std::endl;
}
break;
case '-':
{
std::cout << "The difference is " << a - b << std::endl;
}
break;
case '*':
{
std::cout << "The product is " << a * b << std::endl;
}
break;
default:std::cout << "Incorrect operator" << std::endl;
}
}
int main()
{
while (true)
{
getData();
Calculator();
}
}

Typologist
Автор

The code run cuz your put all the values who user will enters it in global variables

classico_
visit shbcf.ru