0

Can anyone of u say how 30/6-- gives output 5?

3rd Sep 2016, 2:46 PM
Gamer
Gamer - avatar
4 Answers
+ 3
/ is the division symbol in programming. 30 divided by 6 is 5, or better yet, five sixes go in to thirty. Basic mathematics, my friend. EDIT: Apologies, didn't notice the 6--. 6-- (or 6++), means the number is post-decremented, meaning that you use the number before subtracting 1 from it. If you replace 6-- with --6, you will get an answer of 5, because 30/5 is 6.
3rd Sep 2016, 4:49 PM
Cohen Creber
Cohen Creber - avatar
0
?? Don't you know that 5*6=30
3rd Sep 2016, 2:51 PM
Asrk
Asrk - avatar
0
what about the decrement operator..??
3rd Sep 2016, 3:04 PM
Gamer
Gamer - avatar