0% found this document useful (0 votes)
17 views1 page

CH 1

The document contains a Java program that displays an ASCII art representation of a simple face. It uses System.out.println statements to print the various components of the face. The program is part of basic programming exercises from w3resource.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

CH 1

The document contains a Java program that displays an ASCII art representation of a simple face. It uses System.out.println statements to print the various components of the face. The program is part of basic programming exercises from w3resource.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

public class Exercise16 {

public static void main(String[] args)


{
// Display a pattern to create an ASCII art
representation of a simple face
System.out.println(" +\"\"\"\"\"+ ");
System.out.println("[| o o |]");
System.out.println(" | ^ | ");
System.out.println(" | '-' | ");
System.out.println(" +-----+ ");
}
}

Java Basic Programming Exercises - w3resource

You might also like