026. Write a Program to print numbers n to 1 using Do While loop in C language

#include<stdio.h>
#include<conio.h> 
main()
{
  int i=1,n;
  clrscr();
  printf("Enter n : ");
  scanf("%d",&n);
  i=n;
  do
  {
	   printf("%d\t",i);
	   i--;
  }while(i>=1);
  getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *