Program to print a No. in Reverse order and find its MULTIPLICATION using “do-while”loop

#include<stdio.h>
#include<conio.h>
void main()
{
   int 	num,sum=0,mult=1;
   clrscr();
   printf("\nENTER NUBER=>");
   scanf("\n %d",&num);

  do
   {
     mult=mult*num;
      printf("\n revers order==%d",num);
      num--;
   }  while(num>0);
printf("\n sum===%d",mult);
getch();
}

 

Leave a Reply