+ 1
Transportation project
I am lost I couldn't understand what they meant by using specifier in the modulo
5 Réponses
+ 3
% <--- modulo
i, d, f, c <--- specifiers (some examples)
...
int number=7;
printf("The variable has a value of: %d\n", number);
...
+ 2
The modulo operator '%' will give you the remainder.
Example:
126 / 50 = 2+some remaining
126 % 50 = 26 is the remainder
That means:
126 / 50 = 2*50 + 26
126 % 50 = 26 waiting passengers.
So the last bus will have
50 - 26 = 24 free seats.
+ 1
Yes, your calculator give you the result for a percent calculation. 50% from somewhat is the half of that.
Your calculator does not know the modulo operator from programming languages. That are differend things.
+ 1
Ok thanks bro
0
Coding cat but when I checked 126%50 in my calculator it gave me 63