Computer Science, asked by LakshmiChandrakanth, 6 months ago

write a program to print in the given format using escape sequence

Attachments:

Answers

Answered by ajitesh1234567890
0

Answer:

write a program to print in the given format using escape sequence

the format is correct

Answered by anindyaadhikari13
2

Question:-

  • Write a program to print the following using escape sequence.

Solution:-

Question 1,

class Print

{

public static void main(String args[])

{

System.out.print("Good\nmorning.");

}

}

Question 2,

class Print

{

public static void main(String args[])

{

System.out.print("god \t is \t great.");

}

}

Question 3,

class Print

{

public static void main(String args[])

{

System.out.print(" \"Excellent\" ");

}

}

Similar questions