Answer:
printStars(35);
Explanation:
public class Question {
public static void main(String args[]) {
printStars(35);
}
public static void printStars(int numberOfStars){
for(int i = 1; i <= numberOfStars; i++){
System.out.print("*");
}
System.out.print("\n");
}
}
Answer:
The difference between While loop and Do - While loop are explained below.
Explanation:
- While loop : It is a looping procedure in which the statements inside the while loop are executed depending on the condition outside the while before starting the loop.
- If the condition is true then the code inside loop is executed otherwise not.
- Do - While loop: It is a looping procedure in which the statements inside the loop get executed and then the condition at the end of the loop is checked.
- This means even the condition is fails the statements inside the loop are executed once.
- Do while loop name itself suggests that "do the while and then check the condition".
Answer:
The blank space around the edges of a sheet of paper — as with the page of a book — that surrounds the text is called the margin.