Thank you Jim! Got it working now.
Type: Posts; User: MrLowBot
Thank you Jim! Got it working now.
Thanks Jim!
I almost got it working now!
But i had seen the assignment wrong. So what the program has to do is to print out all of the whole numbers that are positive and take the
numbers stored...
I am guessing that i am making things worse than they have to be..
But i am learning at the same time.
Feels like i could almost get this working... almost.
public static void...
So.. i guess that this could work. However i feel like the value of "Data" changes and i cannot print all the numbers afterwards. In either case without the if statement then the program print out...
Okay but how do i store the values that i get from the loop into the array and then print them out later?
Okay so i can make a forloop that takes the numbers that i use and print them out.
But i can't find a way to store them in the array.. or atleast it doesn't look like i am "storing" them right.
...
I have this assignment where i should be able to write in as many whole numbers as i want too and then end it with a negative number.
After the negative number the code should be able to print all...