#include <iostream>
using namespace std;



   int num, factorial;
   num = 6;
   factorial = Fact(num);
   cout << num << "! = " 
           << factorial;
   return 0;
} // end main
int Fact (int num)
{  if (num == 0)
      return 1;
   else
      return num*Fact(num-1);
} //end Fact
 int main()

What is the output?

Recommended Answers

All 2 Replies

Use CODE TAGS please?

>> What is the output?
The output is a bunch of compiler errors, that says WTF are you doing?

Use CODE TAGS please?

>> What is the output?
The output is a bunch of compiler errors, that says WTF are you doing?

sorry, well how can I fix it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.