-->

program to print/display 100 to 1 natural numbers.

//program  to print/display 100 to 1 natural numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
int k=100;
while(k>=1)
   {
      
       printf("%d,",k);
      
    k--;
   }
getch();
}

note:
If you want to display numbers from 'n' to 1 then
   input 'n' and keep all others same.

No comments:

Post a Comment