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.
 
        
                    
             
        
        
        
Answer:
The following code as follows:
Code:
max=name1;   //define variable max that holds name1 variable value.
if (strcmp(name2, max)>0)  //if block.
{
    max=name2;  //assign value to max.
}
if (strcmp(name3,max)>0)   //if block.
 {
   max=name3; //assign value to max.
}
Explanation:
In the above code, we define a variable that is max. The data type of max variable is the same as variables "name1, name2, and name3" that is "char". In the max variable, we assign the value of the name1 variable and use if block statement two times. In if block, we use strcmp() function that can be defined as:
- In first if block we pass two variables in strcmp() function that is "name2 and max" that compare string value. If the name2 variable is greater then max variable value so, the max variable value is change by name2 variable that is "max=name2".
- In second if block we pass two variables in strcmp() function that is "name3 and max" that compare string value. If the name3 variable is greater then max variable value so, the max variable value is change by name3 variable that is "max=name3".
 
        
             
        
        
        
<span>B. Second phase of the Keynesian LRAS Curve.</span>
        
             
        
        
        
Answer:
He relocated from Mecca to the city of Medina.
Explanation:
 
        
                    
             
        
        
        
Answer:
Select the cells you want to format. Click the down arrow beside the Borders button in the Font group on the Home tab. A drop-down menu appears, with all the border options you can apply to the cell selection.