Halstead complexity measures: Difference between revisions

Content deleted Content added
Tags: Reverted Mobile edit Mobile web edit
Undid revision 1027510870 by 2409:4053:1C:8FBC:4025:61D4:85CC:758B (talk)
Line 35:
Consider the following [[C (programming language)|C]] program:
 
<syntaxhighlight lang="c">int fact ( int n)
main()
{
int a, b, c, avg;
if (n==0)
scanf("%d %d %d", &a, &b, &c);
{
avg = (a+b+c)/3;
return 1;
printf("avg = %d", avg);
else
{
return n*fact(n-1);
}
}
}
</syntaxhighlight>