Answer:
public class num7 {
//Method hide and seek begins here
public static void hide_and_seek(int count){
for(int i=1; i<=count; i++){
System.out.println(i);
}
System.out.println("Ready or not, here I come!");
}
//Main method begins here
public static void main(String[] args) {
hide_and_seek(20);
hide_and_seek(10);
}
}
Step-by-step explanation:
Using Java programming langauge.
Method hide_and_seek is created with return type void and receives one parameter count
The method uses a for loop to print numbers from 1 to count, then the string Ready or not, here I come!"
In the main method hide_and_seek () is called twice and passed the argument of 20 and 10