- 1

Why I'm getting error what is wrong in my code plz anyone correct it

public class main { public static void main(String[] args) { int i=0; while(i<100){ system.out.println(i); i += 1; } } }

14th Jun 2021, 5:12 PM
Musaif
3 Answers
+ 14
S should be uppercase in System System.out.println(i);
14th Jun 2021, 5:18 PM
Simba
Simba - avatar
+ 4
System.out.println(i);
14th Jun 2021, 5:18 PM
JaScript
JaScript - avatar
+ 4
Thank u so much
14th Jun 2021, 5:21 PM
Musaif