write a program to print in the given format using escape sequence
Attachments:
Answers
Answered by
0
Answer:
write a program to print in the given format using escape sequence
the format is correct
Answered by
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