What does % mean | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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