write a program to accept two parameters of type int find the sum and product. between them
Answers
Answered by
0
Answer:
import java.util.*;
public class Sum
{
public static void main (String args [])
{
Scanner in=new Scanner(System.in);
int a,b;
System.out.print/n ("Enter two numbers");
a=in.nextInt ();
b=in.nextInt();
Sum=a+b;
P=a*b;
System.out.print/n("Sum="+Sum);
System.out.print/n ("Product="+P);
}
}
Similar questions