Computers and Technology

WILL GIVE BRAINLIEST, JAVA PROGRAMMING PLS HELP Here is the prompt:
The code provided is intended to use a while loop to print the first 9 multiples of an integer entered by the user. For example if the user enters 5, the program should print the numbers 5, 10, 15.,... up to 45, one per line. Debug the code so it functions as described.
Here is the code:
Scanner scan = new Scanner(System. in);
int num = scan. nextInt();
int fac = 1;
while(fac < 9){
System. out. println(num*fac);
fac++;
System. out. println(num*fac);
}

}
}

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:50, Mordred809
Type the correct answer in the box. spell all words correctly. which view of report creation allows you to customize the report before the database program creates it? creating a report in allows you to customize the report before the database program creates it. pl asap
Answers: 1
image
Computers and Technology, 23.06.2019 04:20, milkshakegrande101
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy. a. a fire occurs on the premises, and the building isbadly damaged. b. a burglar steals some money and securities from anunlocked safe. c. a business computer is damaged by vandals whobreak into the shop after business hours. d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm. til
Answers: 2
image
Computers and Technology, 24.06.2019 02:30, journeyhile5
How to apply the fly in effect to objects on a slide
Answers: 1
image
Computers and Technology, 24.06.2019 03:30, mprjug6
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
Answers: 1
Do you know the correct answer?
WILL GIVE BRAINLIEST, JAVA PROGRAMMING PLS HELP Here is the prompt:
The code provided is int...

Questions in other subjects:

Konu
Biology, 20.01.2021 19:30