Question: write a java program. declare these variables in your code. int firstNum = 1 0 ; / / it can be any integer number double

write a java program.
declare these variables in your code.
int firstNum =10; //it can be any integer number
double secNum =2.5; //it can be any double number
Now display these numbers as per the given output.
Expected Output:
First Number =10
Second Number =2.5
here is the calculation:
addition =>(10+2.5)=12.5
Subtraction =>(10-2.5)=7.5
Multiplication =>(10*2.5)=25.0
Division =>(10/2.5)=4.0
write a java program. declare these variables in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!