AD:
=== Question 9 ===
(4 Marks)
When the following code is compiled and executed it eventually executes
the printf and terminates. What value does it print?
#include <stdio.h>
#define NINE 9
int nine (int Nein);
int nein (int nein);
int main (int argc, char *argv[]) {
...int Nine = 3;
...printf ("%d\n", nine (Nine));
...return !NINE;
}
int nein (int nein) {
...return ( !(nein == ((NINE*nein) % NINE)) );
}
int nine (int Nein) {
...int Nine = NINE;
...while (nein (Nine)) {
......Nine += Nein;
......Nine = Nine % NINE;
...}
...return Nine;
}