int n = 5;
double x = 1.5;
char c = 'R';
Fill in the table on the right.
Note: each expression should be taken as independent. I.e. if one expression modifies some variable values, those modifications do not carry over to the next expression.
1 < x < 10
always returns true no matter what x is.
| Year | divisible by 4? | divisible by 100? | divisible by 400? | Is leap year? |
| 703 | no | no | no | not leap year |
| 704 | yes | no | no | leap year |
| 700 | yes | yes | no | not leap year |
| 800 | yes | yes | yes | leap year |
$ ./hw Enter year: 703 Is Not Leap Year $ ./hw Enter year: 704 Is Leap Year
Important: For those of you who already know about &&, || or !, do not use them!