C program to compute the factorial, C/C++ Programming

Write a C program to compute the factorial of  5 i.e 1x2x3x4x5 etc

#include stdio.h
  void main()
  {
  char promt;   
  int factor;
  factor = 1*2*3*4*5;
  printf("The factorial of 5 i.e 5! is %d\n\r",factor);  
  printf("Press any key to exit \n\r");
  scanf("\n%c",&prompt);

  } 

Posted Date: 4/16/2013 1:34:41 AM | Location : United States







Related Discussions:- C program to compute the factorial, Assignment Help, Ask Question on C program to compute the factorial, Get Answer, Expert's Help, C program to compute the factorial Discussions

Write discussion on C program to compute the factorial
Your posts are moderated
Related Questions
#Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.   #include float start_poi


A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome



Project Description: I would like to be building regarding a complex mobile application build as we require the signing of an NDA. My firm in based in Montreal Canada and we are

Talking to IO boards inside a computer or microcontroller depends upon the principles used by the microprocessor to address physical devices. On Motorola systems all devices connec


Op e r a t o r O v e r l o a d i n g : W h e n   a n   o p e r a t o r   i s   u s e d   f o r   d i ff e r e n t   op e r a

I need a project on car rental system using c programming only of college level