There is usually a check mark box on the left hand side upper corner of your document click it and any other document you want to open by that
Every recursive function should have an exit criterion (=handling the base case) to exit the recursion.
Without it, it wil recurse forever, until system resources run out (typically the call stack will overflow and your program will crash).
Answer:
Cleaning the fan
Explanation:
Just did it on Ed
Would you mind giving me brainliest?
Answer:A lot of people cry when they cut an onion. The trick is not to form an emotional bond.lol
import java.util.Scanner;
public class MyClass1 {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int smallest = 0, largest = 0, num, count = 0;
while (true){
System.out.println("Enter a number (-1 to quit): ");
num = scan.nextInt();
if (num == -1){
System.exit(0);
}
else if (num < 0){
System.out.println("Please enter a positive number!");
}
else{
if (num > largest){
largest = num;
}
if (num < smallest || count == 0){
smallest = num;
count++;
}
System.out.println("Smallest # so far: "+smallest);
System.out.println("Largest # so far: "+largest);
}
}
}
}
I hope this helps! If you have any other questions, I'll do my best to answer them.