Output range with increment of 10 5.15.1: Output range with increment of 10 Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 10 as long as value is less than or equal to the second integer Ex: If the input is-15 30, the output is -15-5 5 15 25 Ex: If the second integer is less than the first as in 20 5, the output is Second integer can't be less than the first. For co city, output a space after every integer, including the last ER IN CORAL LANGUAGE PLEASE 1 NEED 2 1/ Your solution goes here Not

Respuesta :

Answer:

// Program is implemented using Coral Programming Language

int X

int Y

int Sum

Put "Enter any two numbers" to output

x = Get next input

Y = Get next input

if Y < X

Put "Second integer can't be less than the first" to output

else

for Sum = X; Sum <= Y; Sum = Sum + 10

Put Sum to output

Explanation:

The above program is written using Coral Programming Language

The first line is a comment

The next 3 lines declares 3 integer variables

Which are X, Y and Sum

X and Y represent the two input numbers as seen on line 6 and 7

X, being the first and Y being the second

Line 8 tests the larger of the two numbers

If Y is less than X, the output is "Second integer can't be less than the first" without the quotes

Else

The last two lines perform iterative operations that assigns the addition of 10 and X to Sum

It continues printing sum as long as sum is less than the value of Y.