Solution for Exercise 8-8

ex0808

#include <stdio.h>

int main()
{
    int a;

    a = 5;

    if(a==-3)
    {
        printf("%d equals %d\n",a,-3);
    }
    return(0);
}

Notes

* The program doesn't have any output because the values compared are unequal.

* Can you make the one-character change to the code that makes the if condition true so that you can see the output? Well, and you need to edit the printf() statement as well, but that's not the point of this exercise.