done =true;//the program is now done. exit the loop.
}
elseif(difference <5)
System.out.println("You are Burning");
elseif(difference <10)
System.out.println("You are Hot");
elseif(difference <100)
System.out.println("Warm");
elseif(difference <300)
System.out.println("You are Cold");
else
System.out.println("You are Freezing");
}
else{
System.out.println("Remember, I am thinking of a number between 0 and "+ maxNum);
}
};
System.out.println("Game Over");
}
}
We use cookies to provide, improve, protect and promote our services. Visit our Privacy Policy and Privacy Policy FAQs to learn more. You can manage your personal preferences, including your ‘Do not sell or share my personal data to third parties’ setting using the “Customize cookies” button below.