Write a program in java to input three integers and find their sum
three integers and find their sum, without using the mathematical operator +
Answers
Answered by
105
Answer:
JAVA :-
Step-by-step explanation:
import java.util.*;
class Brainly
{
static void main()
{
Scanner sc=new Scanner(System.in);
int a,b,c,s;
System.out.println( “Enter 3 integers:”);
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
s=a-(-b)-(-c);
System.out.println( “ Sum:”+s);
}
}
Similar questions
Math,
5 months ago
Biology,
5 months ago
Math,
5 months ago
Science,
10 months ago
Social Sciences,
10 months ago
Math,
1 year ago
Social Sciences,
1 year ago