filmov
tv
Introduction to Programming in C - part 6 - integer math / maths - int

Показать описание
We look at simple maths functions for integers here
addition +
subtraction -
multiplication *
division / and %
note for integer division there are two operators....
/ gives the number and % the remainder...
For example
13/5 = 2 and 13%5=3
because 13 divided by 5 is 2 remainder 3
addition +
subtraction -
multiplication *
division / and %
note for integer division there are two operators....
/ gives the number and % the remainder...
For example
13/5 = 2 and 13%5=3
because 13 divided by 5 is 2 remainder 3