Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
386 B
1
Indexable
Never
int line1=(int)(Math.random()*5);
        int line2=(int)(Math.random()*5);
        if(line1!=5 && line2!=5){
            if(line1>line2){
                System.out.println("Please go Line 2");
            }
            else {
                System.out.println("Please go Line 1");
            }
        }

        System.out.println("Line 1 : "+line1+"\nLine 2 : "+line2);