asked 213k views
2 votes
Write a program to use the loop to find the factorial of a given number.

input: 5
output: 120

asked
User Driea
by
8.3k points

2 Answers

6 votes

Answer:

int n, sum=1;

sum=sum+n;

for ( n=1; n<=5; n++ )

{ cout<< sum;}

return 0;

answered
User ICR
by
8.2k points
1 vote

34 if x equal to -12 is the equal

answered
User Brennan Sei
by
7.6k points

No related questions found