Skip to content

Instantly share code, notes, and snippets.

@SCI-COPATH
Created March 23, 2020 09:23
Show Gist options
  • Save SCI-COPATH/3a48e5c63c6443e2c481c13463e3b5fa to your computer and use it in GitHub Desktop.
Save SCI-COPATH/3a48e5c63c6443e2c481c13463e3b5fa to your computer and use it in GitHub Desktop.
#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