# Condition / Decision Coverage Examples and calculator

Input the values in form according to the program mentioned below;

## Condition / Decision Coverage (TABLE # 1)

Enter A First Value ‘a’**(a==0)
Enter A Second Value ‘b’**(y>0)
Enter A Third Value ‘c’**(c<0)

## Condition / Decision Coverage (TABLE # 1.01)

Enter A First Value ‘a’**(a==0)
Enter A Second Value ‘b’**(y>0)
Enter A Third Value ‘c’**(c<0)

### Void Main()

cout<<"Enter a First Value";
cin>>a;
cout<<"Enter a Second Value";
cin>>b;
if(a==0)\\ Check For Condition Coverage
“Your Condition 1st is 0”;
else
“Your Condition 1st is 1”;;
if(b>0)
“Your Condition 2nd is 0”;
else
“Your Condition 2nd is 1”;;
if(c<0)
“Your Condition 3rd is 0”;
else
“Your Condition 3rd is 1”;;
if((a==0) ||(b>0) && (c<0)\\ Check For Decision Coverage
cout<<"Your Decision 1st is 0";
else
cout<<"Your Decision 1st is 1";

## Condition / Decision Coverage (TABLE # 2)

1st Condition2nd Condition3rd Condition1st Decision
EmptyEmptyEmptyEmpty
EmptyEmptyEmptyEmpty

## Condition / Decision Coverage (TABLE # 3)

1st ConditionEmpty
2nd ConditionEmpty
3rd ConditionEmpty
1st DecisionEmpty