+ 1
Plz correct the script as it says its false
import java.util.Scanner; class something{ public static void main(String[] args){ Scanner x = new Scanner(System.in); for (x = x.nextInt();x<79;x--){ System.out.println(x); } } }
1 Réponse
+ 11
1) it's java not javascript!
2)the code doesn't make a lot of sense, you would probably want to make it >=0
here is the corrected code
import java.util.Scanner;
class something{
public static void main(String[] args){
Scanner x = new Scanner(System.in);
for (int i = x.nextInt();i<79;i--){
System.out.println(i);
}
}
}