Sunday, July 16, 2017

Write five Java statements to print the asterisk pattern as shown below.

*****
*****
*****
*****

/**
 * Created by Jo on 7/10/2017.
 * For more exercises and lessons, visit http://shegertech.blogspot.com/
 * Chapter 1, Exercise 2
 */

public class Q2Solution {
    public static void main(String[] args) {
        System.out.println("*****");
        System.out.println("*****");
        System.out.println("*****");
        System.out.println("*****");
        System.out.println("*****");
    }
}

Share: