Computer Science, asked by roysusmita42073, 1 year ago

Write a program factorial of 4!

Answers

Answered by TheMostInvincible
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