Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
userName=input('Please enter your name:')
age=int(input('Please enter your age:'))
factor=2
finalAge=age+factor
multAge=age*factor
divAge=age/factor
print('In', factor, 'years your age will be', finalAge, 'years old', userName)
print('Your age muliply by', factor, 'is', multAge)
print('Your age divided by', factor, 'is', divAge)
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more