#include <stdio.h>
main()
{
int a,b, c,d;
clrscr();
printf("enter the two variables a,b");
scanf("%d %d", &a,&b);
printf("enter the option 1:Addition,
2:subtraction, 3:multiplication, 4:division");
scanf("%d",&c);
switch(c)
{
case 1:d = a+b;
printf("Addition of two no.=%d", d);
break;
case 2:d = a-b;
printf("Subtraction of two no.=%d", d);
break;
case 3:d = a*b;
printf("Multiplication of two no.=%d", d);
break;
case 4:d = a/b;
printf("division of two no.=%d", d);
break;
}
}
Derive all du-paths and dc-paths using data flow testing.