#include<stdio.h>
#include<conio.h>
void main()
{
int n, i=1;
clrscr();
printf("\n Enter the last digit");
scanf("%d",&n);
while(i<=n)
{
printf("\n %d",i);
i++;
}
getch();
}
No comments:
Post a Comment