Your logic to print is fine, all you need to do is to wrap the code into a for
loop and excute it from 1 to 100, e.g.:
for(int zmienna = 0 ; zmienna <= 100 ; zmienna++){
if (zmienna % 5 == 0 && zmienna % 3 == 0)
System.out.println("FizzBizz");
else if (zmienna % 3 == 0)
System.out.println("Fizz");
else if (zmienna % 5 == 0)
System.out.println("Bizz");
else
System.out.println("int");
}
0
solved Java language – show number 1-100