Question: By using Visual Studio C#.Framwork ? Practice building and using methods Create a Console Application and name it YourLastName_PA5 . Details: Your project should do
By using Visual Studio C#.Framwork
? Practice building and using methods
Create a Console Application and name it YourLastName_PA5 .
Details:
Your project should do the following:
1.)Create a method named SequenceSum. This method will take two integers as input
values and return an integer sum value. If the first integer value is less than the second,
print all the numbers from the first integer counting up to the second, and return the sum
of those integer values. Otherwise, print all the numbers from the first counting down to
the second, and return the sum of those integer values.
2.) In Main(), call the SequenceSum method passing in the values 4 and 10, and print the
returned sum value.
3.) In Main(), call the SequenceSum method passing in the values 100 and 25, and print the
returned sum value.
Your Answer should look similar to the Example output.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
