Program to find factorial of a number using recursion?

1 answer

Answer

1009560

2026-07-25 00:50

+ Follow

#include<conio.h>

#include<stdio.h>

void main()

{

clrscr();

int i=1,fact=1,n;

printf("enter a no.");

scanf("%d"n);

while(i<=n)

{

fact=i*fact;

i++;

}

printf("factorial=%d",fact);

getch();

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.