SITE SCIENTIFIQUE D'AZROU

Informatique - Computer science

C/C++

Lesson three.


We can use arithmetic in our program, so we must speak about arithmetic operand:
Oprand operation Oprand operation Oprand operation
^ exponentiation = = Equality <= Less then orequal
! Not = Affectation k%m The division rest of k to m
* Multiplication != Inequality
/ division > Greater then
- Subtraction < Less then
+ Addition >= Greater then or equal

We will write a program that will give us the result of an addition:


The result of addition will be stored at &res address in memory.
We can initialize a variable at its declaration.
Int a=3,b=5 ;
Int res ;
Res = a+b ;

http://Azrousoft.8m.com