3 Replies - 481 Views - Last Post: 04 March 2010 - 12:31 PM Rate Topic: -----

#1 MrCracker  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 49
  • Joined: 18-October 07

Multiplying Arrays

Posted 04 March 2010 - 10:52 AM

Ok I am multiplying numbers that are entered into an array.

My array: isbn[20][20]

So say I only choose to input one number:

978-0-306-40615

multiply

isbn[0][0] by 1

i should get 9 but I get 57...

I don't get why.

Please help.
Is This A Good Question/Topic? 0
  • +

Replies To: Multiplying Arrays

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6107
  • View blog
  • Posts: 23,659
  • Joined: 23-August 08

Re: Multiplying Arrays

Posted 04 March 2010 - 11:04 AM

What is the ASCII character which corresponds to the number 57?
Was This Post Helpful? 0
  • +
  • -

#3 bodom658  Icon User is offline

  • Villiage Idiom
  • member icon

Reputation: 113
  • View blog
  • Posts: 1,123
  • Joined: 22-February 08

Re: Multiplying Arrays

Posted 04 March 2010 - 11:05 AM

Show the code please, that way we can solve your problem, not give you possible solutions.

EDIT: Damn, Jack, that's some good thinking.

This post has been edited by bodom658: 04 March 2010 - 11:05 AM

Was This Post Helpful? 0
  • +
  • -

#4 MrCracker  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 49
  • Joined: 18-October 07

Re: Multiplying Arrays

Posted 04 March 2010 - 12:31 PM

Jack was right. Thanks. I fixed it by subtracting '0' from the outputs.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1