print 1-99 numbers with loop in c

 #include<stdio.h>

int main()

{

   int a;

   printf("Enter the number\n");

   scanf("%d",&a);

    while(a<100){                                                 

    printf("%d\n",a);

   a++;

}

return 0;

}


Comments

Popular posts from this blog

create a num table in a new file in c

write a programme to compare time stamp in c

write a struct programme to keep bank details in c