Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a script that will find the difference between two integers in your script and display result. The difference needs to be a positive number.
Create a script that will find the difference between two integers in your script and display result. The difference needs to be a positive number. In other words, if the first number is larger than the second number, perform "first number second number". If it is the other way around, perform "second number first number".
Take for example, if
int Num and int Num
the output should be
Num and Num Difference is
Also,
int Num and int Num
the output should be
Num and Num Difference is
Do this by using If Else Statement.
Save as homeworkAc
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started