Question: Can you please help me find the 5 errors to this program and comment on where the issues are? #include stdafx.h // Visual Studios PC

Can you please help me find the 5 errors to this program and comment on where the issues are?
#include "stdafx.h" // Visual Studios PC only
#include
using namespace std;
#include "string"
int myFactorial( intt integer)
{
if( integer == 1)
return 1;
else
{
return (integer * (myFactorial(integer-1)));
}
}
int main() {
int j == 10;
string myName = "NoName";
cout << "Output sentence" << endl;
cout << 120 << endl;
cout << j << endl; // prints out the value of x
fi (( j == 0 ) || ( myName == "NoName" ))
{
cout << "J equals 0 OR myName equals NoName" << endl;
}
else
{
cout << "None are true" << endl;
}
for ( int i = 0; i < 5; i++)
{
cout << "Please enter an integer value: ";
cin >> j;
cout << "The value you entered is " << j;
cout << " and its double is " << i*2 << ". "; // print out double value
}
cout << "Enter your first and last name: ";
cin >> myName;
cout << "My first and last name is " << myName << endl;
cout << "The factorial of 15 is " << myFactorial(15)<< endl;
system("pause");
return 0;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!