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");


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 function to determine whether a number is prime: it will return true if the input is prime and false otherwise. Use it to see whether -7 is prime.

make use of class objects two calculate average

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. The area under a curve between two points can b

wap to calculatethe volume of cone,cylinderand sphere

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

Write a function that has two int parameters num and n, and returns TRUE when the nth bit in num is 1, otherwise FALSE. This function should use the function in the above problem.

Hi is there any chance to get assignment for fresher tutor

program for decode the encoded numbering format into message

Default Value Functions,  When declaring a function we can specify a default value for each parameter. This value will be used if that parameter is left blank when calling to the f