Hey, I'm quite new in programing so need some help with this lottery program I'm making. What I'm trying to do is very simple, simulate a lottery but my effords are in vain since when I'm compiling it, it says that there are 100 errors ... -.- The code is right here:
class lottery {
public static void main (Strings [] args){
int ball1;
int ball2;
int ball3;
int ball4;
int ball5;
int star1;
int star2;
ball1 <= 50 && ball1 > 0;
ball2 <= 50 && ball2 > 0;
ball3 <= 50 && ball3 > 0;
ball4 <= 50 && ball4 > 0;
ball5 <= 50 && ball5 > 0;
star1 <= 50 && star1 > 0;
star2 <= 50 && star2 > 0;
System.out.prin tln("The Lottery has Begun!!");
System.out.prin tln("And The Numbers are:");
System.out.prin tln(ball1 + "for the number one");
System.out.prin tln(ball2 + "for the number two");
System.out.prin tln(ball3 + "for the number three");
System.out.prin tln(ball4 + "for the number four");
System.out.prin tln(ball5 + "for the number five");
System.out.prin tln("Now The Stars Are:");
System.out.prin tln(star1 + "for the star number one");
System.out.prin tln(star2 + "for the star number two");
}
}
Hope you can answer and help me with this!
Thanks a lot, ImortalSorrow
class lottery {
public static void main (Strings [] args){
int ball1;
int ball2;
int ball3;
int ball4;
int ball5;
int star1;
int star2;
ball1 <= 50 && ball1 > 0;
ball2 <= 50 && ball2 > 0;
ball3 <= 50 && ball3 > 0;
ball4 <= 50 && ball4 > 0;
ball5 <= 50 && ball5 > 0;
star1 <= 50 && star1 > 0;
star2 <= 50 && star2 > 0;
System.out.prin tln("The Lottery has Begun!!");
System.out.prin tln("And The Numbers are:");
System.out.prin tln(ball1 + "for the number one");
System.out.prin tln(ball2 + "for the number two");
System.out.prin tln(ball3 + "for the number three");
System.out.prin tln(ball4 + "for the number four");
System.out.prin tln(ball5 + "for the number five");
System.out.prin tln("Now The Stars Are:");
System.out.prin tln(star1 + "for the star number one");
System.out.prin tln(star2 + "for the star number two");
}
}
Hope you can answer and help me with this!
Thanks a lot, ImortalSorrow
Comment