0% found this document useful (0 votes)
4 views1 page

Simple Python Addition Program

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Simple Python Addition Program

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Write a program add.

py

April 14, 2025

[2]: # operations 2(b)


#23071A1073
a=int(input("Enter first number: "))
b=int(input("Enter second number: "))
#23071A1073
print(type(a))
print(type(b))
#23071A1073
c=a+b
print(type(c))
print("The sum of",a,"and",b,"is :",c)

Enter first number: 6


Enter second number: 5
<class 'int'>
<class 'int'>
<class 'int'>
The sum of 6 and 5 is : 11

You might also like