Answer:
public class Main
{
public static void main(String[] args) {
int userNum = 40;
while(userNum > 1){
userNum /= 2;
System.out.print(userNum + " ");
}
}
}
Explanation:
*The code is in Java.
Initialize the userNum
Create a while loop that iterates while userNum is greater than 1. Inside the loop, divide the userNum by 2 and set it as userNum (same as typing userNum = userNum / 2;). Print the userNum
Basically, this loop will iterate until userNum becomes 1. It will keep dividing the userNum by 2 and print this value.
For the values that are smaller than 1 or even for 1, the program outputs nothing (Since the value is not greater than 1, the loop will not be executed).
Answer:
I'd say all of them have somewhat of a profound amount of viability and usefulness when it comes to teachers trying to find appropriate content, but "Can be used across subject areas" is not distinct enough, and is to broad/unclear, since quite obviously if teachers are looking for content for there students they will be looking for apps that are used for teaching certain subject areas. Every app used for teaching will be used for certain subject areas, so stating that statement is a mere waste of time & space. Where as "This app is not available in the Chrome Web Store" is pretty helpful to know, because knowing if an app is available or not is really important. "Helped my struggling students really understand the concept of color harmony." may be helpful if you are trying to find an app that correlates to science as the concept of color harmony is science. And "Doesn’t have much of a learning curve" shows that the app can be used long-term and is informative.
It usually takes two years to complete and tends to focus on technical training would be the best answer
Answer:
10 20
30 40
50 60
Explanation:
Given
The above code segment
Required
What is printed, if anything
To do this, we analyze the code line by line.
Line 1: The first line creates a 4 by 3 array named mat
Line 2: for (int[] row : mat)
{ -> This creates row[] array which represents each row of array mat
Line 3: for (int j = 0; j < row.length; j += 2){ -> This iterates through the even indexed elements of the row array i.e. 0 and 2
Line 4: System.out.print(row[i] + " "); -> This prints the even indexed elements of the row array.
The even indexed elements are: 10, 20, 30, 40, 50 and 60
Line 5: System.out.println();
--> This prints a new line