// Program name : starsOne.java // Author : Leam Delaney // Course : Foundation Degree in Software Engineering // Date created : 25 October 2006 // Date last amended : 25 October 2006 import InOut; class starsOne { public static void main(String[]args) { int count; int count1; int triangleSize = 0; System.out.print("How big do you want the triangle to be ? : "); triangleSize = InOut.readInt(); while (triangleSize < 0) { System.out.print("Error, please enter a positive integer; How big do you want the triangle to be ? : "); triangleSize = InOut.readInt(); } for (count = 1; count <= triangleSize; count ++) { for (count1 = 1; count1 <= count ; count1 ++) { System.out.print ("*"); } System.out.println(); } } }