Explain arithmetic operatiors in c++ with example
Answers
Answered by
1
Question given →Explain arithmetic operatiors in c++ with example.
_____________________
Answer→ Arithmetic operators are used to perform arithmetic operations on variables and data.
For example, a + b; Here, the + operator is used to add two variables a and b . Similarly there are various other arithmetic operators in C++.
Examples:-
The arithmetic operators for scalars in MATALB are: addition “+”, subtraction “-”, multiplication “*”, division “/”, and exponentiation “^”.
please mark me as brainliest
Answered by
1
Answer:
Explanation:
There operators are basic operator like +,-*/.
It helps you perform basic operation like math operations . Also here is a case sample how you would do it:
+ - Addition -> var=a+b
- - Subtract -> var = a-b
* - Product -> var = a*b
/ - Division -> var = a/b
There are few more , but these are basic ones
Similar questions