Professional Documents
Culture Documents
C++ Notes and Rules: Type of Integer
C++ Notes and Rules: Type of Integer
Type of integer
int score;
End of variable
Name of variable
10. To set a value of a variable, you need to use = (assign) sign and to
follow, and the value that you want to put next.
12. Computers can use the four basic maths signal ( + , -, /, *) and
percentage signal (%).
16.We can write many variables and strings in only one line.
19.If command is used for true or false, if the value input in the code
correspond to which if value has, then the code will execute. If not, it
will not
== equal to
!= not equal to
> greater than
< less than
22. If the result of the input in not equal to the if clause, then we can use
else clause to make something happen after.
23.But if you want to put other if clauses you can put else if.
24. If you want to use a big number of if or else clauses, you can use the
switch function, a switch function must be followed with parenthesis
and a variable inside it.
Value of variable
double pi = 3.14
The integer
The name of
variable
27.
!: the not logical operator