#include <stdio.h>
#include <conio.h>
int fact(int);
void main()
{
int n,f;
clrscr();
printf("Enter a number:");
scanf("%d",&n);
f=fact(n);
printf("Factorial (%d)=%d.",n,f);
getch();
}
int fact(int x)
{
if(x==0||x==1)
return(1);
else
return(x*fact(x-1));
}
A structure is a collection of variable (of different data types) referenced under one name, providing of convenient means of keeping related information together. A structure definition forms a template that may be used to create structure variable. The general …