# prompt the user for input integer1 = raw_input( "Enter first integer:n" ) # read a string integer1 = int( integer1 ) # convert the string to an integer
integer2 = raw_input( "Enter second integer:n" ) # read a string integer2 = int( integer2 ) # convert the string to an integer
sum = integer1 + integer2 # assignment of sum
print "Sum is", sum # print sum
Related Scripts with Example Source Code in same category :