0

What does % mean

A question says X = 3 Num = 17 Print(x%num) Please help me

11th Jul 2018, 3:03 PM
Chewey Lemon
Chewey Lemon - avatar
4 Antworten
+ 3
S. C. it's 3
11th Jul 2018, 5:58 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 1
% known as the modulo operator gets the remainder after dividing the first number with the second. In this case, 3%17 equals to 3.
11th Jul 2018, 4:17 PM
Satyam
+ 1
oh thank you. I fixed it just now.
11th Jul 2018, 6:04 PM
Satyam