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

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -