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
Biology,
6 months ago
Environmental Sciences,
6 months ago
Science,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago