write a c program to compute the factorial of


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

  } 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: write a c program to compute the factorial of
Reference No:- TGS0265309

Expected delivery within 24 Hours