Write a java program for addition of two number.
[Initialization of Variables).
Answers
Answered by
4
Question:-
Write a program in Java to perform addition of two numbers.
Program:-
class Addition
{
public static void main(String args[])
{
double a=20.0;
double b=10.0;
System.out.println("Result is: "+(a+b));
}
}
Similar questions