Write a program in Java to multiply two numbers.
Answers
Answered by
5
Answer:
public class main
{
public static void main(String args[])
{
int a=12, b=6, s;
s=a*b;
System.out.println("Here's the answer ="+s);
}
}
Explanation:
Hey mate this is the answer for you question , I have made this program by initialising the values of integer variables without Scanner class..
If you liked so pls mark my answer as Brainliest and also follow for more...
Thank you :)
Similar questions