Write a while loop that will generate and print 100 random integers on the range [1,1000)?
I cant get mine right, plz help. Also, i dont have JAVA so couldnt really check

And also, if you can:

Write a while loop that adds up all the odd numbers between 0 and 100 and displays the total as output. Display the total only once at the end of the program.

Recommended Answers

All 2 Replies

Also, i dont have JAVA so couldnt really check

You'll get java here

Go through the API and code yourself . IF you are stuck anywhere while coding , come back

Post the code that you do have and ask specific questions.

From our forum rules:
Keep It Organized - Do provide evidence of having done some work yourself if posting questions from assignments.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.