| 1 | #include <stdio.h> |
| 2 | |
| 3 | int main(){ |
| 4 | int a=1; int b=1; |
| 5 | printf("The value of a and b is %d\n", a&&b); |
| 6 | printf("The value of a or b is %d\n", a||b); |
| 7 | printf("The value of not(a) is %d\n", !a); |
| 8 | |
| 9 | if(a && b){ |
| 10 | printf("both are true\n"); |
| 11 | } |
| 12 | // is same as writing .... |
| 13 | if(a){ |
| 14 | if(b){ |
| 15 | printf("both are true"); |
| 16 | } |
| 17 | } |
| 18 | return 0; |
| 19 | } |
nothing calls this directly
no outgoing calls
no test coverage detected