Sunday, July 12, 2020

C PROGRAM TO FIND A FACTORIAL NUMBER

#include<stdio.h>
#include<conio.h>
int main()
{
int a;
long int fact=1;
printf("input a whole nos:");
scanf("%d".&a);
while(n>1)
{
fact=fact*a;
a--;
}
printf("factorial=%ld",fact);
getch();
}
                              AHAD🙏🙏                                    

No comments:

Post a Comment

Program of electricity board

 Q.......Develop a program of electricity board of calculating bill of consumer based on unit consumption                                 UN...