Computer Science, asked by mmrm36670, 3 months ago

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 sameer7815
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