Trace the execution of the following if statements and select the output from this code fragment
int main()
{
int a = 3, b = 7 ;
if ( (a + b) % 2 != 0 ) {
printf("tetrahedron\n");
}
else if ( a > b ) {
printf("cube\n");
}
else if ( b - 4 > a ) {
printf("octahedron\n");
}
else {
printf("dodecahedron\n");
}
}
- Tetrahedron
- Cube
- Octahedron
- Dodecahedron