addition of two integer in java program.
Answers
Answered by
1
import java.util.*;
public class sum
{
static void main()
{
Scanner ob= new Scanner(System.in)
int a,b,c;
System.out.println("Enter the value of two integers");
a=ob.nextInt();
b=ob.nextInt();
c=a+b;
System.out.println("Sum= "+c);
}
}
HOPE IT HELPS! ^_^
public class sum
{
static void main()
{
Scanner ob= new Scanner(System.in)
int a,b,c;
System.out.println("Enter the value of two integers");
a=ob.nextInt();
b=ob.nextInt();
c=a+b;
System.out.println("Sum= "+c);
}
}
HOPE IT HELPS! ^_^
Answered by
1
it's a big question plzz mark me brainlest plzzzzzzzzzzzzzzzzzzzzzzzzzzz
Similar questions
English,
7 months ago
Math,
7 months ago
Sociology,
1 year ago
Computer Science,
1 year ago
Physics,
1 year ago