Write a program factorial of 4!
Answers
Answered by
2
Answer:
I am writing this in turbo c++ language
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,fact=1;
for(i=1;1<=4;i++)
{
fact=fact*i;
}
cout<<"Factorial of 4 is:"<<fact<<endl;
getch();
}
Similar questions
India Languages,
8 months ago
English,
8 months ago