written 5.6 years ago by | • modified 5.2 years ago |
# include <stdio.h>
main ()
{ float x, y, z;
clrscr(),
printf( "enter the three variables x, y, z");
scanf( "%f%f" , &x, &y, &z);
if(x>y)
{
printf( "x is greatest");
else
printf ("z is gretest");
}
else
{
if (y > z)
printf ( " y is greatest" ),
else
printf( "z is greatest");
}
getch();
}
1) Draw the decision-to-decision graph or DD graph the above program.
2) Calculate the cyclomatic complexity of the program using all the methods.
3) List all the independent paths.
4) Design test cases from independent paths.