
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

#include<stdio.h> #include<conio.h> void main() { long int a,b=1,i; clrscr(); printf ("Please enter a number\n"); scanf ("%ld",&a); for (i=a; i>=1; i=i-1) printf("The factorial of the given number is: %ld",b); getch(); } { b=i*b; }^ Factorial^1 docsity.com