factorial of a number
#include<stdio.h>
#include<conio.h>
void main()
{
int a[5],i,n,b=1,l;
clrscr();
for(i=0;i<5;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<5;i++)
{
b=a[i];
l=a[i]-1;
if(b<=7)
{
while(l>=1)
{
b=b*l;
l--;
}
printf("%d ",b);
}
}
getch();
}
here you find the best simplest implement of programs
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
void beg_insertion();
void display(int st[]);
{