A poem in C

/***********************************************************/
/* Short Poem */
/***********************************************************/

#include

/***********************************************************/

main () /* Poem */

{
printf ("Astronomy is %dderful \n",1);
printf ("And interesting %d \n",2);
printf ("The ear%d volves around the sun \n",3);
printf ("And makes a year %d you \n",4);
printf ("The moon affects the sur %d heard \n",5);
printf ("By law of phy%d great \n",6);
printf ("It %d when the the stars so bright \n",7);
printf ("Do nightly scintill%d \n",8);
printf ("If watchful providence be%d \n",9);
printf ("With good intentions fraught \n");
printf ("Should not keep up her watch divine \n");
printf ("We soon should come to %d \n",0);
}

Guess what the output is of the above c code, click on the 'comment' to find out.

2 comments:

  1. Astronomy is 1derful
    And interesting 2
    The ear3 volves around the sun
    And makes a year 4 you
    The moon affects the sur 5 heard
    By law of phy6 great
    It 7 when the the stars so bright
    Do nightly scintill8
    If watchful providence be9
    With good intentions fraught
    Should not keep up her watch divine
    We soon should come to 0

    ReplyDelete