Course Content
Introduction to C++ | Mobile-Friendly
Introduction to C++ | Mobile-Friendly
1. Basics
5. Intro to Arrays
Simple Math
To perform arithmetic operations on variables and values C++ supports the following arithmetic operators:
Letβs try:
python
By division, any remainder was dropped since we assign the result to the int variable which doesnβt contain any decimals.
You can use all operations above to perform calculations on values, variables, or between variable and value:
python
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 5