Can anyone help me to make a basic for loop using an array for example candy to candies not so complicated so I can simulate on my own help me and sorry for my bad English thanks :))

First, write down the rules to changing the singular case to plural. Express the text as a set of if/then/else statements. For example:

if word ends in a consonant then add 's' to end of word
else if word ends in 'e' then add 's' to end of word
else if word ends in 'y' then remove 'y' and add 'ies' to end of word
.
.
.
etc.

That will clarify in your mind how your code should process the data. Have fun!

commented: nice help +36

Ok Im going to try it :)) thnks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.