Skip to content
Snippets Groups Projects
Commit 51c9ed32 authored by Ross Netusil's avatar Ross Netusil
Browse files

Start_my_Repo

parents
No related branches found
No related tags found
No related merge requests found
#include <iostream>
int main ()
{
int i;
std::cout << "please enter an integer value: ";
std::cin >> i;
int b=i;
int a;
for (int a=b-1; a!=0; b=b*a--);
std::cout << "The value you entered is " << i;
std::cout << " and its factorial is " << b << ".\n";
return 0
;}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment