This is an old revision of the document!
-In order to obtain the last two digits of this input value, you can create a new variable and set that to be the result of the input year variable, divided by the integer division remainder (%) 100.
-For example: short unsigned int new = year % 100
Day | Value |
---|---|
Monday | 1 |
Operator | Description |
---|---|
== | is equal to |
To verify your results, ./mmf0verify
Remember to only use stdout to print the days of the week [EX: fprintf(stdout, “Monday\n”)]. If stdout is used for anything other than the days of the week, the mmf0verify will say you have a mismatch for every year, even if you get the correct day when you run your compiled code. If you want to print something other than the days of the week, use stderr.