I'm trying to get a program that displays all the numbers from 10 to 800 , 10 per line, that's divisible by 5 and 6 and having the numbers seperated by one space.
Can someone tell me exactly what...
Type: Posts; User: JAKATAK
I'm trying to get a program that displays all the numbers from 10 to 800 , 10 per line, that's divisible by 5 and 6 and having the numbers seperated by one space.
Can someone tell me exactly what...
I just assumed there needed to be an if statement because I couldn't get each row to increase by " " (2 spaces) each time. How would you increase it by 2 spaces each iteration then? normally this...
This isn't homework, it's a question in a textbook practice example that I can't seem to get right.
I got it to work with 3 for loops, but I don't know how to get it to work with 2 for loops and a...
I'm trying to get my while loop to include negative numbers except -9999.
I could get my code to read positive numbers like 5 having a sum of odd numbers of 9, but trying to get negative numbers...
EDIT: I figured it out finally, I actually did need to use a for loop. Here's my solution to my own problem:
System.out.println("Enter a positive integer: ");
int num = input.nextInt();
...
Thank you, Wow i feel like an idiot. My code was actually correct I just thought when I was typing in integer numbers into the program that for some reason the Area couldn't be a decimal number and...
I tried doing what Norm said,
I'm using:
x1 = 2, x2 = 2
y1 = 4, y2 = 4
double side1 = Math.pow((x2-x1),2);//this equals 4.0
then I added another Math.pow()
It doesn't have any errors marked in the program when i have typed it all in, but when i compile and try to run it, it says:
Errors in Workspace:
Errors exist in required project(s):...
Hello,
I've been trying to figure out one part of my code for around 3 hours.
I've been rewriting it different ways, only running what the logic error is and not the other parts and I still can't...