write a simple program for adding and subtract three numbers. take input from user?.com
Answers
Answered by
1
Import java.util.*;
Class Q1
{
Public static void main (String args [])
{
Scanner dis= new Scanner (System.inn);
int a,b,c,s=0;
System.out.print(“enter three numbers;”);
a=dis.nextInt();
b=dis.nextInt();
c=dis.nextInt();
s=a+b+c;
System.out.print(“sum of three numbers=“+s);
}
}
I hope this will help u
Class Q1
{
Public static void main (String args [])
{
Scanner dis= new Scanner (System.inn);
int a,b,c,s=0;
System.out.print(“enter three numbers;”);
a=dis.nextInt();
b=dis.nextInt();
c=dis.nextInt();
s=a+b+c;
System.out.print(“sum of three numbers=“+s);
}
}
I hope this will help u
Similar questions