#include<stdio.h> #include<conio.h> main() { int i=1,n; clrscr(); printf("Enter n : "); scanf("%d",&n); while(i<=n) { printf("%d\t",i); i++; } getch(); } Tags:Learn ProgrammingLearn programming easilyLearn to code