samedi 30 août 2014

i tried to make a funny java game. but how do you make it repeat?


Vote count:

-1





import java.util.Scanner;
public class Ifstatement {
public static void main(String args[]){
Scanner aa = new Scanner(System.in);
double bb;
System.out.println("type your number");
bb = aa.nextDouble();
double test = bb;
if (test == 9){
System.out.println("Wow, congrats dude.");
}else{
if (test < 9){

System.out.println("nah, like your dick(too small)");

}
if (test > 9){
System.out.println("nah, like my dick(too big)");
}
}
}
}


Sorry about the words i used above. it should be a funny game between friends...i dont know how to make it go back to the beginning once you didnt guess the right number so you dont need to click the run button again



asked 1 min ago







i tried to make a funny java game. but how do you make it repeat?

Aucun commentaire:

Enregistrer un commentaire