void rightprice says if it's + or -
Type: Posts; User: Alex123456
void rightprice says if it's + or -
I am trying to understand I am a beginner
The program says "You have to guess the price" and when you write a number it stops
readInt() when the user enters an integer, but what is it for "void...
Can you write some code that I see
Also how can I send you the ap.jar?
I don't use the same java. Can you write your email then edit to send you the ap.jar?
void rightprice (int Price, int RightPrice){
while ((Price<RightPrice)||(Price>RightPrice)){
if (Price<RightPrice){
println("it's +");
}
else {...
because it returns Price + RightPrice
and i don't want to do int + int
int rightprice (int Price, int RightPrice){
while ((Price<RightPrice)||(Price>RightPrice)){
if (Price<RightPrice){
println("it's +");
}
else {...
I am a beginner my code does not work and then I do not know how to do. Can you help me to make the game and explain me the code please.
Hello, I am a beginner and I need help with a game where you have to find the right price (the price is a random number).
class game extends Program{
String name;
void...