//------------------------------------------------------------------------- // // woodchuck.cpp // // Written by: Simon Parsons // Last modified: 10th October 2007 // We need stdio for this #include int main( void ) { int n = 0; // initialization required printf( "how much wood could a woodchuck chuck\n" ); printf( "if a woodchuck could chuck wood? " ); // prompt user scanf( "%d",&n ); // read input, then // print output printf( "a woodchuck could chuck %d pieces of wood!\n",n ); return 0; } // end of main()