Problems in making calulating program.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • administrata

    #1

    Problems in making calulating program.

    I wrote this to add 2 numbers...

    print "Please input data"
    number1 = int(raw_input(" "))
    number2 = int(raw_input(" + "))


    total = number1 + number2
    print total

    raw_input("")

    I want to make output like this...

    1 + 1 = 2

    But, actually... it looks like this...

    1
    + 1
    2

    HELP;
  • Michele Simionato

    #2
    Re: Problems in making calulating program.

    You were on the right track before: look at the tutor
    mailing list ;)

    <no offence intended, but there is an entire
    list devoted to this kind of questions>


    Michele Simionato

    Comment

    Working...