Multiplication
#1

Hello,

I'm designing a system and have got myself stuck.

Basically, what I'm trying to figure out is this:

If I have a 15-digit string of numbers for example:
Код:
149655893228335
How do I multiply every other number by 2? To add to this, how would I then check the result, and if the result per number is a 2-digit number, add the digits together to make it a single digit number?

I've tried using loops, and other methods but all without any luck.

My mathematics skills aren't very good.

I hope this makes sense.

Thank you,

Isolated.
Reply


Messages In This Thread
Multiplication - by Isolated - 08.08.2016, 23:48
Re: Multiplication - by Sew_Sumi - 08.08.2016, 23:52
Re: Multiplication - by Isolated - 09.08.2016, 00:00
Re: Multiplication - by justice96 - 09.08.2016, 00:13
Re: Multiplication - by Luicy. - 09.08.2016, 00:16
Re: Multiplication - by Shinja - 09.08.2016, 00:31
Re: Multiplication - by GunZsmd - 09.08.2016, 00:33
Re: Multiplication - by GunZsmd - 09.08.2016, 00:36
Re: Multiplication - by Isolated - 09.08.2016, 01:00
Re: Multiplication - by SickAttack - 09.08.2016, 01:04

Forum Jump:


Users browsing this thread: 3 Guest(s)