/in/Main.java:1: error: class, interface, or enum expected
public static void main(String[] args) {
^
/in/Main.java:3: error: class, interface, or enum expected
Scanner scan=new Scanner(System.in);
^
/in/Main.java:4: error: class, interface, or enum expected
n=scan.nextInt();
^
/in/Main.java:5: error: class, interface, or enum expected
while(n>1) {
^
/in/Main.java:8: error: class, interface, or enum expected
}else {
^
/in/Main.java:10: error: class, interface, or enum expected
}
^
/in/Main.java:13: error: class, interface, or enum expected
}
^
/in/Main.java:15: error: class, interface, or enum expected
}
^
8 errors