1 /*C How to Program, 6/E, Deitel & Deitel.
3 Solution of exercise 3.29:
4 What does the following program print?
12 while ( count <= 10 ) {
14 printf( "%s\n", count % 2 ? "****" : "++++++++" );
21 Written by Juan Carlos Moreno (jcmhsoftware@gmail.com), year 2017. */
27 int count
= 1; /* initialize count */
31 /* output line of text */
32 printf("%s\n", count
% 2 ? "****" : "++++++++");
33 count
++; /* increment count */
36 return 0; /* indicate program ended successfully */
37 } /* end function main */