Slice Based Testing Double Black
Slice Based Testing Double Black
Slice Based Testing Double Black
1
#include<conio.h>
void�main()
S. No Slice Paths A B C Expected
2 { output
3 float�A,B,C;
4 clrscr(); 1 S(A, 6) 1,2,3,4,5,6,28 9
5 printf("Enter�number��1:\n");
6 scanf("%f",�&A); 1,2,3,4,5,6,7,8,9,10,11,12,
7 printf("Enter�number��2:\n"); 2 S(A, 13) 13,14,18,27,28 9 8 7 9
8 scanf("%f",�&B);
9 printf("Enter�number��3:\n");
10 scanf("%f",�&C);
1,2,3,4,5,6,7,8,9,10,11,12,
11 if(A>B)�{�/*do�nothing*/
3 S(A, 28) 13,14,18,27,28 9 8 7 9
13 }
19 else���{
20 if(C>B)�{�/*do�nothing*/
22 }
4 S(B, 8) 1,2,3,4,7,8,28 8
23 else����{
24 printf("The�largest�number�is:�%f\n",B);
1,2,3,4,5,6,7,8,9,10,11,19,
25 } 5 S(B, 24) 7 9 8 9
26 }
20,23,24,25,26,27,28
27 getch();
28 }
S(B,�28)�=(1,2,3,4,5,6,7,8,9,10,11,19,20,23,24,25,26,27,28)