hi

download hi

If you can't read please download the document

description

hi

Transcript of hi

/** * Write a description of class MoreLoops here. * * @author (your name) * @version (a version number or a date) */import java.util.Scanner;public class JZMoreLoops{// An input scanner which could be used in both methods.static Scanner keyboard = new Scanner(System.in);public static void printStarTriangle(){boolean print= true;System.out.println("\tStar Triangle\n");System.out.print("Enter an integer between 1 and 25 inclusive: ");int numRows = keyboard.nextInt();int count;while (print){//your code goes here // Use nested for loops to output a triangle of *s with numRows number of rowsif (numRows = 1){for (int row = 1; row