Created
March 23, 2020 09:23
-
-
Save SCI-COPATH/3a48e5c63c6443e2c481c13463e3b5fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <conio.h> | |
void main() | |
{ | |
clescr(); | |
int n,i=2; | |
printf("Enter Limit \n"); | |
scanf("%d",&n); | |
top: | |
if(i<=n) | |
{ | |
printf("%d\n",i); | |
i=i+1; | |
goto top; | |
} | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment