Â

This is a program of while loop in which we are going to print the numbers in reverse order from 'n' to 1 with the help of the C Programming language.
#include <stdio.h>
int main()
{
int n;
printf("Enter value of n , \n");
scanf("%d", &n);
int i = n;
printf("Here are the numbers :\n");
while (i >= 1)
{
printf("%d \n", i);
i--;
}
return 0;
}
//......Coded by ARADHANA MISHRA
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP