Computers and Technology, 29.12.2019 05:31 annadson7807
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("");
}
}
Answers: 2
Computers and Technology, 22.06.2019 20:10, ianmartin6080
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
Computers and Technology, 25.06.2019 01:30, babyquinnz
Why is the most liked picture on instagram an eggy? owo
Answers: 1
Write a while loop that prints usernum divided by 2 (integer division) until reaching 1. follow each...
Mathematics, 30.01.2020 17:47
History, 30.01.2020 17:47
World Languages, 30.01.2020 17:47
Mathematics, 30.01.2020 17:47