Computer Science, asked by syedhassankhan1, 7 months ago

write a simple program for adding and subtract three numbers. take input from user?.com


Answers

Answered by umarafrid786
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
Similar questions