while loop in C programming

#include<stdio.h>
main()
{
int a=1;

while(a<=10)

        {

printf("%d ",a);
a++;
}
}

output: 1 2 3 4 5 6 7 8 9 10


Printf numbers in reverse  order suing while loop


#include<stdio.h> 
main() 
{
int a=10;
while(a>=1)
{
printf("%d ",a);
a--;
}
}

output: 10 9 8 7 6 5 4 3 2 1