trying to get them to print on the same line as the numbers though instead of before the corresponding number, for example
right now its printing
1
HiTwo
2
HiThreeOrSeven
3
HiTwo
Type: Posts; User: Rstuart970
trying to get them to print on the same line as the numbers though instead of before the corresponding number, for example
right now its printing
1
HiTwo
2
HiThreeOrSeven
3
HiTwo
I got it worked out for the 1-50
Ok I have it working good now except for the fact my numbers start at 2 and end at 51, instead of 1 - 50,
my code now looks like:
public class QuestionFive {
public static void...
is my System.out.println suppose to be out of the while brackets right below the end brackets?
your right im gettin
2
3HiTwo
4HiTwoHiThreeOrSeven
5HiTwoHiThreeOrSeven
6HiFiveHiTwoHiThreeOrSeven
7HiFiveHiTwoHiThreeOrSeven
8HiFiveHiTwoHiThreeOrSeven
i think i am suppose to replace the numbers with the correct string maybe to instead of 51 getting HiThreeOrSeven in place of it? if I am reading that right.
ok i made my changes but I am still getting it for everynumber, is something wrong with my strings?
im gettin
51HiFiveHiTwoHiThreeOrSeven
50HiFiveHiTwoHiThreeOrSeven...
Hello, I am suppose to write program that displays number 1-50 and then also print HiFive next to the ones that are multiples of five, HiTwo if they are divisible by two and HiThreeOrSeven if they...
Yeah sorry, first time posting here. I actually got my problem worked out, assigned HiFive and Georgia to variables and then just used if statements like i did before. I am not sure how they handle...
Ok, I have spent to long trying to figure out what is keeping my code from printing both HiFive and Georgia for the right integer put in. Here is my assignment as it was given to me:
3. (10 pts)...