Q14: Put the code in the right order to create a program that will prompt a user to enter an integer which is NOT a negative multiple of 5. If the user enters a negative multiple of 5, the program should ask for another value.
import java.util.*;
public class main{
public static void main(String[] args){
---
//declare variables
int value;
Scanner get = new Scanner(System.in);
---
//prompt for and read input
System.out.print("Enter a value. ");
value = get.nextInt();
---
//loop until valid value is entered
for (int j = 0; value<0 && value % 5 == 0; j++) {
---
System.out.print("Invalid. Enter another value. ");
value = get.nextInt();
---
}
System.out.println("Valid value entered " + value);
---
}
}