program to print numbers

#include<stdio.h>
#include<conio.h>
void main()
{
 int a,i;
 clrscr();
printf("enter a  number=");
scanf("%d",&a);
 for(i=0;i<=a;i++)
  {
    printf("%d\n",i);
   }
getch();
}

Comments

Popular posts from this blog

BOOT YOUR PHONE IN RECOVERY MOOD- HARDRESET

prime numbers program