Program to print a No. in Reverse order and find its MULTIPLICATION.

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

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

Leave a Reply