+ 3
Help its giving Error?
8 Respostas
+ 5
@ Serena
you maust add this code
"Scanner sc = new Scanner(System.in);"
+ 5
import java.util.Scanner;
public class Sumoftwonumber
{
public static void main(String[] args) {
int a,b,c;
System.out.println("Enter two number");
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
c = a+b;
System.out.println("Sum = "+c);
}
}
+ 1
Bro i have edited the code still not working plz help me
+ 1
Oh I'm sorry ma'am thanks for the help i just added it to line 7 and it works thank u very very much.
+ 1
Help here too Serena
https://www.sololearn.com/Discuss/416184/?ref=app