subject

Write a while loop that prints usernum divided by 2 (integer division) until reaching 1. follow each number by a space. example output for usernum = 40:
20 10 5 2 1

import java. util. scanner;

public class dividebytwoloop {
public static void main (string [] args) {
int usernum;
scanner scnr = new scanner(system. in);
usernum = scnr. nextint();

/* your solution goes here */

system. out. println("");
}
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 22.06.2019 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
You know the right answer?
Write a while loop that prints usernum divided by 2 (integer division) until reaching 1. follow each...
Questions
question
Mathematics, 01.07.2019 05:20
Questions on the website: 13722361