Contenido del Curso
Introduction to C++ | Mobile-Friendly
Introduction to C++ | Mobile-Friendly
Simple Math
To perform arithmetic operations on variables and values C++ supports the following arithmetic operators:
Let’s try:
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:
¡Gracias por tus comentarios!