Using the computational knowledge in JAVA it is possible to write a code that Write a while loop that adds 5 to userNum while userNum
// declaring variable userNum
var userNum = 5;
// variable ans to store all answers and print them in single line
// (as expected in sample output)
var ans = "";
// while loop, while userNum is <= 20
// (to get output 25 on screen, we need to run loop till less-than-equal)
while(userNum <= 20) {
userNum += 5;
ans += userNum + " ";
}
// displaying final output on console
console.log(ans);
See more about JAVA at brainly.com/question/12975450
#SPJ1