Daily programming challenge #15 Basic challenge extended

in #daily8 years ago

Difficulty: easy


Programm a programm, wich takes two number, and calculates them


INPUT

1, 2


OUTPUT

3


Extensions:

E1: Make the user input as many number he wants, until he enters zero...

INPUT

1, 2, 6, 4, 67, 3, 0


OUTPUT

No, I won't calculate that! Im a lazybone too!


E2: Everyone knows, Integers overflow at some point... with this said, give the user the posibility to enter numbers as big as he wants!

Sort:  

Yes ;-)

My programming challenges are not designed to learn a particular language, but rather to sharpen your skills.

In many cases you should be wise about your choice, though...
Networking for example, works well with Java. This challenge is best with python or C++, as it is really good handling arrays.

But in any matter, I hope, you enjoy my programming challenges,

Yours, Linuxer4Fun