NTech

Menu
  • Home
  • Technology
    • Internet
    • Market
    • Stock
  • Downloads
    • Dvd
    • Games
    • Software
      • Office
  • Parent Category
    • Child Category 1
      • Sub Child Category 1
      • Sub Child Category 2
      • Sub Child Category 3
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Featured
  • Health
    • Childcare
    • Doctors
  • Uncategorized

Friday, 7 August 2015

C program to Calculate Factorial of a Number Using ...

By ntech01:01 No comments
#include<stdio.h>
#include<conio.h>
void main()
{
int a,f=1,i;
clrscr();
printf("Factorial i : ");
scanf("%d",&i);
for(a=1;a<=i;a++)
{
f=f*a;
}
printf("ANS %d = %d ",i,f);
getch();
}


Output:

Factorial i : 3
ANS 3 = 6























Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Pages

  • Home

Popular Posts

  • What Is A Motherboard? What Are The Different Components Of A Motherboard?
    What Is A Motherboard? What Are The Different Components Of A Motherboard? Image: Wikipedia Short Bytes: A motherboard acts as a pl...
  • Fingerprint scanners on Android phones are far less secure than on iPhones
    The  Samsung Galaxy S5's fingerprint reader security vulnerabilities  were well documented over a year ago. But if you were hoping t...
  • C program to Calculate Factorial of a Number Using ...
    #include<stdio.h> #include<conio.h> void main() { int a,f=1,i; clrscr(); printf("Factorial i : "); ...
  • Master Python: Save over 95% on 50+ hours of training
    Master Python: Save over 95% on 50+ hours of training For prog...
  • FREE! That’s Right, I’m Giving Away MILLIONS of FREE Microsoft eBooks again! Including: Windows 10, Office 365, Office 2016, Power BI, Azure, Windows 8.1, Office 2013, SharePoint 2016, SharePoint 2013, Dynamics CRM, PowerShell, Exchange Server, System Center, Cloud, SQL Server and more!
    FREE! That’s Right, I’m Giving Away MILLIONS of FREE Microsoft eBooks again! Including: Windows 10, Office 365, Office 2016, Power BI, A...
  • HP PCs - Finding the System Serial Number on Your Computer
    Command Prompt (Windows) Find your serial number by typing a command into Windows. In Windows, search for and open  CMD.EXE . A co...
  • How to Hide and UnHide Any Drive in Windows Using Command Prompt
    How to Hide Any Drive in Windows Using Command Prompt Method 1 of 2 Step 1: Type CMD in Start menu search area and hit Enter to la...
  • PHP vs Ruby which programming language is better for web development
    PHP vs Ruby which programming language is better for web development PHP and ruby are trending scripting languages for the web servers...
  • What Is Programming And Why You Should Learn To Code?
    What Is Programming And Why You Should Learn To Code?     Short Bytes: With the advent of new online opportunities, learning how to...
  • FIND FACTORIAL OF A NUMBER USING RECURSION IN C PROGRAM
    #include<stdio.h> #include<conio.h> int fact(int); void main() {   int num,f;   clrscr();   printf("\nEnter a numbe...

Recent Posts

Text Widget

Pages

  • Home

Blog Archive

  • ►  2019 (2)
    • ►  May (1)
    • ►  April (1)
  • ►  2017 (7)
    • ►  July (1)
    • ►  April (3)
    • ►  March (3)
  • ►  2016 (50)
    • ►  October (1)
    • ►  September (4)
    • ►  July (2)
    • ►  June (6)
    • ►  April (2)
    • ►  March (5)
    • ►  February (28)
    • ►  January (2)
  • ▼  2015 (9)
    • ▼  August (9)
      • Command Line Argument C Program
      • C program to copy contents of one file to another ...
      • Google announces massive reorganization, becomes s...
      • Windows 10 vs. Windows 8.1 vs. Windows 7 Performance
      • Fingerprint scanners on Android phones are far les...
      • C program to Calculate Factorial of a Number Using...
      • FIND FACTORIAL OF A NUMBER USING RECURSION IN C PR...
      • Intel Core i7-6700K "Skylake" CPU Review
Powered by Blogger.

Text Widget

About Me

ntech
View my complete profile

Copyright © NTech | Powered by Blogger
Design by Flythemes | Blogger Theme by NewBloggerThemes.com