Write a while loop that produces that would produce the outp
Write a while loop that produces that would produce the output below. Write only the required statements, not a complete program. Use hard code values (no user input) 25, 29, 33, 37, 41, 45, ...., 89, 93, 97.
Solution
int limit=97;
int start=25;
while(start<=limit){
System.out.print(start+\", \");
start=start+4;
}
output:
25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97
