Print Natural Numbers from 1 to N Using goto Statement in C
This program prints all natural numbers from 1 to a number n entered by the user, using a goto statement to create a loop-like jump. C Program #include <stdio.h> int main() { int n, i = 1; printf(“Enter n: “); scanf(“%d”, &n); loop: if (i