+ 2
What does "//" mean?
6 Respuestas
+ 7
Unless you are talking about a mathematical operator for floor division :)
Then it returns an integer which is next lowest to the regular division result:
13 / 4 = 3.25
13 // 4 = 3
+ 3
It is a comment. "//" starts a single line comment ( a comment that is one line long ). You can't see a comment in the actual output of the code, but it is there. Comments are often used to explain to others what your code is doing, or to remind yourself about what you are doing in part of your program. It's good practice to use comments in your code.
It's also used for division in Python:
40//2 outputs 20
Sorry this is so long 😅 Happy Coding! 😃
+ 3
Thankyou
+ 1
IN JAVA
Comments :- The line following // is just for comments, used to explain what you have done or to write anything stupid.
They don't produce an error like any random text in code.
+ 1
It's used to show the existence of a comment on that line
+ 1
// This is a comment
It is also used for returning quotient in python
eg. 30//2 = 15