1. Write a program in Java to find the product of two nos.
s using
imput the Scanner class to capture the user input.
Answers
Answered by
1
Answer:
import java.util.*;
class Scanner
{
static void main(String args[])
{
int a,b,c;
Scanner sc=new Scanner(System.in);
System.out.println("Enter the no.");
a=sc.nextInt();
b=sc.nextInt();
c=a*b;
System.out.println("The product of the two no.="+c);
}
}
HOPE THE ANSWER HELPS YOU.....
PLEASE MARK ME AS BRAINLEAST.......
Similar questions