Terry E Snyder Jr

Computer & Web Solutions

Support, Design, and more...
| | |
April 10th, 2020 7:59:02 AM

C Programming Program #3


This program will require you to input a string containing only blank spaces and letters of the alphabet. The input string will be echo printed and then each word in the string will be printed on a separate line preceeded by a number of asterisks that is equal to the number of letters in each word. The asterisks will be printed beginning in column 1 and each word will be printed beginning in column 16.

Assume the string entered was: Fourscore and seven years ago
Then the output will appear as follows:

Fourscore and seven years ago

********* Fourscore
*** and
***** seven
***** years
*** ago

The strings to be used for input are:

There once was a farmer who took a young miss in back of the barn

The quick gray fox jumped over the lazy dog

Jack and Jill went up the hill to fetch a pail of water

Yes we ave no bananas we have no bananas today

Oh beutiful for spacious skies for amber waves of grain

Web www.terryesnyderjr.com

Page Updated on October 1, 2019 21:59

www.terryesnyderjr.com Copyright 2000-2020©