hi i dont know if this is the right place to be asking this but im trying to create a small program in java that can calculate the area of a square and then of multiple squares if the user enters the number of squares and the size increment of the squares,i.e.
// Get Length(L)
System.out.prin t("What is the length of the square: ?");
L = data_input.next Double();
// Get Number of square areas to calculate(N)
System.out.prin t("How many squares do you want to calclate: ?");
N = data_input.next Double();
//Get Square size increment(I
System.out.prin t("Please enter the square size increment: !");
I = data_input.next Double()
just hoping someone can help me to get the output correctly so that it shows the amount of square areas corresponding to N and that the L in each case increases by the amount corresponding with I, thanks in advance if anyone can help me, will be hugely appreciated. thanks
// Get Length(L)
System.out.prin t("What is the length of the square: ?");
L = data_input.next Double();
// Get Number of square areas to calculate(N)
System.out.prin t("How many squares do you want to calclate: ?");
N = data_input.next Double();
//Get Square size increment(I
System.out.prin t("Please enter the square size increment: !");
I = data_input.next Double()
just hoping someone can help me to get the output correctly so that it shows the amount of square areas corresponding to N and that the L in each case increases by the amount corresponding with I, thanks in advance if anyone can help me, will be hugely appreciated. thanks
Comment