write a program to print in the given format using escape sequence
Share
write a program to print in the given format using escape sequence
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
write a program to print in the given format using escape sequence
the format is correct
Question:-
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\" ");
}
}