Write a Java program to add two numbers, where the values are a=3,b=9
Answers
Answered by
0
Explanation:
Class AddTwoNumbers
{
public static void main(String[] args)
{
System.out.println(“Addition of two numbers 4 + 9is ” + (3 + 9));
}
}
Answered by
0
Your program:
package com.company;
class test
{
public static void main(String[] args)
{
int a = 3, b = 9;
int n3 = a+b;
System.out.println("The sum of the numbers: "+n3);
}
}
Similar questions