Answer:
import java.io.*;
import java.util.Scanner;
class divide {
public static void main (String[] args) {
Scanner num=new Scanner(System.in);//scanner object.
int userNum=num.nextInt();
while(userNum>1)//while loop.
{
userNum/=2;//dividing the userNum.
System.out.print(userNum+" ");//printing the userNum.
}
}
}
Input:-
40
Output:-
20 10 5 2 1
Input:-
2
Output:-
1
Input:-
0
Output:-
No Output
Input:-
-1
Output:-
No Output.
Explanation:
In the program While loop is used.In the while loop it divides the userNum by 2 in each iteration and prints the value of userNum.The inputs and corresponding outputs are written in the answer.
The ways to add a photograph to a slide is given below: What to write when composing the email is also given below.
<h3>How do you Insert photos into a slide?</h3>
The steps are given below?\
- The first thing to do is to open the slide you want to insert the image on.
- then click on Insert menu, and take the cursor to the Picture, and then one can click Photo Browser or insert pictures.
- Then select the picture that you want and and one can drag it onto the slide.
Note that it is essential to follow the steps and one can add as many pictures as they want to their slides.
Learn more about e-mail from
brainly.com/question/24506250
#SPJ1
Answer: D) 300 metres would be my choice because our wifi can only go that far outdoors, inside wifi can only travel up to 150 metres.
Explanation: Hope this helps! Have a wonderful day!
Don’t forget to thanks & Brainliest is always appreciated!