Not understood 7%(5//2) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Not understood 7%(5//2)

One more example

10th Apr 2020, 1:18 PM
Saubhagya Srivastava
Saubhagya Srivastava - avatar
2 Answers
+ 5
Which language? Include name of language in tags.
10th Apr 2020, 1:19 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 3
If the language is Python or any other language where the '/' operator returns a float: 7%(5/2) 7%2.5 2.0 If the language is C++ or any other language where the '/' operator returns an integer: 7%(5/2) 7%2 1
10th Apr 2020, 3:30 PM
CeePlusPlus
CeePlusPlus - avatar