I'm working on iterations right now, as shown in this page of my textbook:
https://i.stack.imgur.com/i7vbm.jpg
I have worked out the following code:
package rectangle;
import java.util.Scanner;
public class messin {
public static void main(String[] args){
int number;
Scanner scanner = new Scanner(System.in);
number = scanner.nextInt();
double newstuff = Math.sqrt(number*number+number*number);
System.out.format("%10.3f%n", newstuff);
}
}
This is suppose to be a rectangle driver that uses the equation c = sqrt(a^2+b^2). As you can see I am not very far, but I will update as I get further. Thanks for the help and patients with the edits.