Rewrite the following program after removing the errors in the program, if any:
Class Myclass
{
import java.util.*;
static void main()
{
int a;
a = sc .nextInt();
scanner sc = new scanner(System.in);
System.out.println(“Sum=”a);
}
}
Answers
Answered by
4
import java.util.*;
class Myclass
{
public static void main(String args[])
{
scanner sc= New scanner (System.in());
int a;
a= sc.nextInt();
System.out.println(“Sum=”a);
}
}
please mark as brainliest
Similar questions
India Languages,
1 month ago
Social Sciences,
1 month ago
Math,
1 month ago
Social Sciences,
3 months ago
Hindi,
3 months ago
Science,
9 months ago
English,
9 months ago