We Post only the Best Stuff

Calculate Factorial using C Language

Previous Program »» Convert foots to Centimeters

This is a new approach in C Language up to now as compared to tutorials I have published before. Please try to understand it with a bit more patience and presence of mind.
The coding for C Langyage Program to calculate Dactorial goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=n,c,fact=1;
printf("Enter the number whose Factorial is to be calculated: ");
scanf("%d",&n);
for (c=1; c<=n; c++)
fact=fact*c;
printf("The Factorial of %d = %d",n,fact);
getch();
}

Next Program »» Simple Interest using C Language

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated
Support : Contact Us | Privacy Policy | Site Map
Copyright © 2013. Tech Jatt - All Rights Reserved
Site Design by Nitin Kundu Licensed to Tech Jatt
Proudly powered by Blogger