Solution for Exercise 5-12

ex0512

#include <stdio.h>

int main()
{
	printf("%d/%d=%f\n",2,5,2/5);
    return(0);
}

Output

2/5=0.000000

Notes

* The format/argument type warning is accurate, and a problem, but a program is still created.