Answered step by step
Verified Expert Solution
Link Copied!

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 Num1=90 and int Num2=100
the output should be
Num1=90 and Num2=100. Difference is 10.
Also,
int Num1=100 and int Num2=90
the output should be
Num1=100 and Num2=90. Difference is 10.
'Do this by using If Else Statement.
Save as homework04_5A.c
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is dividend payout ratio ?

Answered: 1 week ago

Question

Explain the factors affecting dividend policy in detail.

Answered: 1 week ago

Question

4. What advice would you give to Carol Sullivan-Diaz?

Answered: 1 week ago