Machine Problem

Write a program that uses a function that will ask the user to give a number and then the program will compute the factorial equivalent of the given number by the user.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following,, and

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel


Want to support my channel?

GCash Account

Jake Pomperada




Thank you very much for your support.
// factorial.cpp
// Author    : Mr. Jake R. Pomperada, BSCS,MAED-IT
// Date      : August 26, 2018   Sunday  5:19 PM
// Location  : Bacolod City, Negros Occidental Philippines.
// Website   :
// Email     : and

#include <iostream>
#include <conio.h>

using namespace std;

 // function prototype declaration  
int factorial(int);  

int main()
int num_input=0;
int solve=0;

cout <<"\n\n";
cout <<"\tFactorial a Number Solver";
cout <<"\n\n";
cout<<"\tGive a Number : ";
solve= factorial(num_input);   
cout <<"\n\n";                                      
cout<<"\tThe factorial value of "<<num_input<<" is "<<solve<<".";
cout <<"\n\n";
cout << "\tEnd of Program";
cout <<"\n\n"; 

// function factorial

int factorial(int a)
	int fact=1;


	return fact;


Leave a Reply

Your email address will not be published.