println with \n – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-ICSE2018-03E #JAVA#4059    siteicon   siteicon  

Problem Statement - println with \n

Write the output for the following:
System.out.println(“Incredible”+”n”+”world”);

Solution

TC++ #4059

The output would be –
Incredible
world

“n” will give a new line


Share

sunmitra| Created: 25-Mar-2018 | Updated: 12-Apr-2019|ICSE2018






Back