Halstead complexity measures: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Mobile edit Mobile web edit
Line 35:
Consider the following [[C (programming language)|C]] program:
 
<syntaxhighlight lang="c">int fact ( int n)
main()
{
if (n==0)
int a, b, c, avg;
{
scanf("%d %d %d", &a, &b, &c);
return 1;
avg = (a+b+c)/3;
else
printf("avg = %d", avg);
{
return n*fact(n-1);
}
}
}
</syntaxhighlight>