Write the code to that uses the integer variables sum5s and…
Write the code to that uses the integer variables sum5s and userInput to do the following: 1.) Create a do-while loop that stops when the userInput is 0.2.) Inside the do-while loop ask the user to enter a number and save it in userInput.3.) Check to see if the number entered is divisible by 5 and if it is then accumulate it into the variable called sum5s.4.) After the loop is over, print a message that states the contents of the sum5s variable. Given the code: int sum5s = 0;int userInput;Scanner keyboard = new Scanner(System.in);//Write your code here:
Read Details