#Display all odd numbers from 1-20 using do while loop

21 messages · Page 1 of 1 (latest)

uneven fossil
#

need help on this assignment!
Create a Do-While loop program based on the given problem.
Problem: Display all odd numbers from 1 to 20

ripe bayBOT
#

This post has been reserved for your question.

Hey @uneven fossil! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

#

We won't do your homework for you. Try the problem first, and if you have a question on a specific part of the problem, or your implementation of the problem, we can help!

uneven fossil
#

whats the problem here?

past coyote
#

There is no printf in java. Use ```java
System.out.println("Hello world!");

uneven fossil
#

oh oki

#

what do i put inside " " ?

dark helm
#

you're probably more familiar with that

uneven fossil
#

ohh okay

#

what do i put inside " " ?

#

im using System.out.println

dark helm
#

you can also replace the "" with the number variable entirely, it'll still print out properly

#

println accepts anything

uneven fossil
#

is this correct?

dark helm
past coyote