Write a program to print numbers from 1-n

//this is a program to print numbers from 1-n
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1,n;

printf("\n\nEnter the Value Of n: ");
scanf("%d",&n);

while(i<=n)
{
printf("\n%d",i);
i++;
}
getch();

}

Previous
Next Post »