C program to print all numbers from 1 to N using goto statement
Given the value of N and we have to print all number from 1 to N using C program.
goto is a jumping statement, which transfers the program’s control to specified label, in this program we will learn how to print all numbers from 1 to N, N is the limit of the series which will be given by the user.
Enter limit (value of N): 10
1 2 3 4 5 6 7 8 9 10