Computer Science, asked by weldhouse1502, 4 months ago

Write a program to print the factorial of any inputted number.

Answers

Answered by umeshyenumulla
0

Answer:

hope this is helpful

Explanation:

Factorial Program using loop

.#include<stdio.h>

.int main()

.{

.int i,fact=1,number;

.printf("Enter a number: ");

.scanf("%d",&number);

.for(i=1;i<=number;i++){

.fact=fact*i;

have a nice day

Similar questions