Solution for Exercise 6-16

ex0616

#include <stdio.h>

int main()
{
    const int v = 5;

    printf("The value is %d\n",v);
    printf("And %d is the value\n",v);
    printf("It's not %d\n",v+1);
    printf("And it's not %d\n",v-1);
    printf("No, the value is %d\n",v);
    return(0);
}

Output

The value is 5
And 5 is the value
It's not 6
And it's not 4
No, the value is 5