This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Int array?

 
Imran Bhutta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a for loop and now i dont know how i would add the int values in an array?

i need it to add the vaules together and then see if its a % of 10 and if its not i have to make it which is basiclayy value of n % 10 and add the remainder, which will give me my last values. and then with these values i have to decode a string..

 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean that an input of "424242" is to give an int value of 18?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic