cyclomatic complexity - How to draw a control flow graph for a nested for loop? -


for(num2 = 0; num2 <= 3;  num2++) {   for(num1 = 0; num1 <= 2; num1++)   {         cout<< num2<< "   " << num1<< endl;   } }  

how draw control flow graph above code segment?

thanks in advance :)

i studying test on , it's still kind of vague, might wrong, think should this:

  o<  /| \ / v / | o< | | \ | v / | o \  >o 

please let me know if got same result, or if graph unclear i'll make proper one.


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

c - Defining floating point constants, how many digits are useful? -

C# Apple Bonjour - how to monitor service records within Windows -