Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,753 members, 7,820,600 topics. Date: Tuesday, 07 May 2024 at 05:56 PM

Programming Challenge (2) - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Programming Challenge (2) (771 Views)

Programming Challenge For Beginners N20000 / . / Coding Challenge 2: Palindromes (2) (3) (4)

(1) (Reply) (Go Down)

Programming Challenge (2) by elvis10ten(m): 4:58pm On Jul 15, 2013
While we were taught addition as kids, we were told that if a number passes ten we should carry one and write the other number. For example:
705 plus 306 =
[5 + 6 = 11, write 1 carry one = 1],
[0 + 0 = 0, add the one (1) you carried = 1],
[7 + 3 = 10, since its the last number write the ten = 10],
all of them now equals 1011
, which is the answer you get when you add 705 and 306, i hope that rings a bell. Write a program that will print the number of carry out or down gotten while doing an addition. For the above case we carry out once. RULES
1)Your program should be able to accept two integers as input.
2)Run your code on www.ideone.com or if you can't post it here.
3)Any programming language is allowed.
4)Your code should be able to run with any input.
5)The shortest and fastest code wins.
6)Your code should be able to run on a poor cpu/hardware. Good luck.
Re: Programming Challenge (2) by elvis10ten(m): 3:11pm On Jul 16, 2013
30 views no solution ?
Re: Programming Challenge (2) by ooman(m): 4:58pm On Jul 16, 2013
u'r just looking for someone to do ur assignment for you. Will help you later sha...am on mobile now....
Re: Programming Challenge (2) by elvis10ten(m): 5:11pm On Jul 16, 2013
ooman: u'r just looking for someone to do ur assignment for you. Will help you later sha...am on mobile now....
lmao. I guess you don't know me. Please view my profile and check my threads. Smh for you.
Re: Programming Challenge (2) by ooman(m): 6:03pm On Jul 16, 2013
elvis10ten: lmao. I guess you don't know me. Please view my profile and check my threads. Smh for you.

have checked ur threads, its all about challenges .... also

Time registered: May 20, 2012
Time spent online: 8 days & 8 hours
Last seen: 5:41pm

calm down...
Re: Programming Challenge (2) by elvis10ten(m): 6:42pm On Jul 16, 2013
ooman:

have checked ur threads, its all about challenges .... also

Time registered: May 20, 2012
Time spent online: 8 days & 8 hours
Last seen: 5:41pm

calm down...
thanks for the clearification. If i need help i would ask for it directly.
Re: Programming Challenge (2) by NOLONGTIN1(m): 8:05pm On Jul 16, 2013
Just saw this..... will get on it 2maroo
Re: Programming Challenge (2) by ooman(m): 9:21pm On Jul 16, 2013
elvis10ten: thanks for the clearification. If i need help i would ask for it directly.

ok then..bye bye
Re: Programming Challenge (2) by elvis10ten(m): 5:08pm On Jul 18, 2013
NO LONG TIN: Just saw this..... will get on it 2maroo
I waited for you, and i got bored. Since nobody have attempted or brought a solution, here is my solution http://ideone.com/Zq9sdQ
Re: Programming Challenge (2) by NOLONGTIN1(m): 9:00pm On Jul 18, 2013
elvis10ten: I waited for you, and i got bored. Since nobody have attempted or brought a solution, here is my solution http://ideone.com/Zq9sdQ

Sorry was busy + Nepa abi PHCN did their work for like 2 days.... anyway i'm checking urs, if its different from the plan/idea i had, i go let you know
Re: Programming Challenge (2) by elvis10ten(m): 9:33pm On Jul 18, 2013
NO LONG TIN:

Sorry was busy + Nepa abi PHCN did their work for like 2 days.... anyway i'm checking urs, if its different from the plan/idea i had, i go let you know
No p.

(1) (Reply)

Educational App For Deployment / I Need To Learn Programming / What Are The Best Programming Blogs?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.