Write a program to input two integers using parameters and find their sum and product.
Class 9 - Computer Applications - Ch 5 - Input in JAVA
Answers
Answered by
26
Hey there!
Program to input two integers using parameters and find their sum and product.
public
class Question1
{ static void main(int a,int b)
{
int s,p;
s=a+b; p=a*b;
System.out.println("Sum="+s);
System.out.println("Product="+p);
}
}
Hope It Helps You!
Answered by
8
hola mate
here is ur answer
hope this helps
❤❤❤❤
Attachments:
Similar questions