write a program in java to print the multiplication of the two value by assigning the following values
A=4;B=3
Answers
Answered by
0
Question:-
- To print the product of 2 no. by assigning a value.
Code:-
import java.util.*;
class Code
{
public static void main (String ar [])
{
int a=4,b=3,c;
c=a*b;
System.out.println(a+"×"+b+"="+c);
}
}
Output:-
4×3=12
Similar questions