Question: Create a method that accepts a single integer parameter. Inside the method, print out a list of numbers starting at 1, going to the number
Create a method that accepts a single integer parameter.
Inside the method, print out a list of numbers starting at 1, going to the number supplied, where each number is on a line by itself, followed by a period.
Inside your main method, call your method with an integer value, example output could be like (assuming 3 is passed):
1.
2.
3.
c#
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
