How to do all arithmetic operations in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to do all arithmetic operations in c++?

11th Nov 2017, 11:12 AM
Syed Rehan
Syed Rehan - avatar
2 Answers
0
use operators, such as +, -, *, / and so on. so for example, you have two variables: x and y. if you want their sum, it is x+y. the same goes with other examples.
11th Nov 2017, 11:53 AM
Kemi
Kemi - avatar
0
Yeah dear..all arithmetic operations use in c++ Let A and B two variables..if you want their sum ,multiple,divisions ....x+y; and x*y; or. X/y;
11th Nov 2017, 12:34 PM
tosee 786
tosee 786 - avatar