Solution for Exercise 4-16

ex0416

#include <stdio.h>

int main()
{
    writeln("Another horrible mistake.");
    return(0);
}

Notes

* writeln() is a function in several different programming languages. It features a companion statement write(), which works to display a string of text. The writeln() function adds a newline to the text, similar to puts() in C.

* Below you see the code the way it should look with puts(), as suggested in the book.

#include <stdio.h>

int main()
{
	puts("Another horrible mistake.");
	return(0);
}