Question: ACTIVITY 5 2 8 0 4 0 . 3 4 8 9 5 2 8 . q x 3 z q y 7 Integer inputNum

ACTIVITY
528040.3489528.qx3zqy7
Integer inputNum is read from input. Write a while loop that iterates until inputNum is equal to 4. In each iteration of the loop:
Output "Not found 4 yet" and a newline.
Read integer inputNum from input.
Click here for example
import java.util.Scanner;
public class SimpleWhileLoop {
public static void main(String[] args){
Scanner scnr = new Scanner(
System.in);
int inputNum;
inputNum =scnr* nextInt ();
V* Your code goes here */
System.out.println("Found 4!");
}
}
1
2
3
Feedback?
 ACTIVITY 528040.3489528.qx3zqy7 Integer inputNum is read from input. Write a while

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!