Doubt regarding editorial of simple input problem

Please explain me the following-

  1. public static void take input ()
  2. scanner scn =new scanner (system.in)
  3. intn=scn.next int()
  4. system.out.println(n)
    functions of the above were not in the tutorial videos.
    And give me the code in some other way ,as per the tutorial

Hi @mmk32001
The editorial is not in c++ language it is in JAVA.

Here is code in c++ :

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.