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...