Hi i need to write a program that asks the user for the length and width of a rectangle, and must print the rectangle using *'s .... for example a width of 5 and length of 7
i have the program all set,,, but the right side does not print properly, unless i put 5x7 for the width and length... other values print incorrect......
here is my code:
/*
import java.io.*;
public class Class1
{
public static void main(String[] args) throws IOException
{
BufferedReader IN= new BufferedReader(new InputStreamReader(System.in));
System.out.print(" what is the width >");
int width=Integer.parseInt(IN.readLine());
System.out.print(" what is the length >");
int length=Integer.parseInt(IN.readLine());