Activity diagrams (for recursive function)

Hey!
I really need help, i have alot in school right now. Becuase i'm about to get a summerbreak.

Question: How can i make a Activity diagram for a recursive function?
Could someone make me or show me one that are contiguous to this code:

#include <iostream>

using namespace std;

unsigned int Fakultet (unsigned int N) {
if ( N == 0 ) {

return 1;
}

return N * Fakultet ( N - 1 );
}

int main () {
unsigned int Number;
cout << "represent numbers: ";
cin >> Number;

cout << Number << "! = " << Fakultet ( Tal ) << endl;
system ("pause");
return 0;

}

//Thanks!

Last edited on
Topic archived. No new replies allowed.