Write a program to find the factorial of an integer using Do while loop.

#include<stdio.h>

#include<conio.h>

int main()

{

clrscr();

int n,f;

f=1;

printf(“Enter the num which you want to find the fact: “);

scanf(“%d”,&n);

do

{

f=f*n;

n–;

}

while(n>=1);

printf((“Welcome to www.candcpp.com\n”);

printf(“The factorial is %d”,f);

getch();

return 0;

}