Идёт турнир! | В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.
|
|
imesecan | 13.июля.2015 в 11:57:42 | |
0 | -- Test 1 --- 3 8
--- Pattern --- 12
|
imesecan | 12.ноя.2015 в 09:23:14 | |
1 | When you divide a number by 2, the result can be floating point number (as in 3 divided by 2 is 1.5).
However, the division operator in most programming languages automatically defines the type of the operation according to the input. If both operands are integers, the division operator does integer division (3/2==>1) in which the floating point part is ignored. If you want to force an arithmetic operator to be forced to floating point operation, you need to typecast of the operands of the division operator: float res = (float)3 / 2 ;
|
tmonka21 | 24.ноя.2021 в 22:17:34
| 2 | Сообщение скрыто
|
|