Computer Science, asked by Occasionally, 1 year ago

I have written an program on Java and there is some mistakes please correct it for me

import java.util.*()
class MyClass {
public static void main() {
Scanner sc= new Scanner (System .in)
int i,n;
System.out.println("Enter the limit");
n=sc.nextInt();
for (i=1;i<=n;i*10+1)
{System.out.println (i+",")}
}
}

Answers

Answered by lakki02
1
Scanner sc= new Scanner(System.in); ( missing of ; )
System.out.println(i+","); ( missing of ; )
import java.util.*; ( missing of ;)
Answered by sunitazirange
0

Answer:

import java.util.*;   semicolon comes here!

System.out.println(i+",");  here too semicolon comes here!

these are only the mistakes!

hope it helps!

plz mark me as brainliest!

Explanation:

Similar questions