Write a Java program that will define two integer variables with values a =49 and b=7 and display the sum difference product and divison results of a and b
Answers
Answered by
0
Answer:
public class Main
{
public static void main(String[] args) {
int a =49, b=7;
System.out.println("The difference is "+ (a-b));
System.out.println("The product is "+ (a*b));
}
}
Explanation:
Similar questions
Physics,
25 days ago
Math,
25 days ago
Math,
1 month ago
Physics,
1 month ago
Social Sciences,
9 months ago