CHAPTER    3

HOW TO TAKE INPUT AT RUN TIME FROM THE USER



WE have predefined function to take run time input :input().

Example:                                                                                

a=int(input("Enter the value of a:")) 
b=int(input("Enter the value of b:"))
c=a+b                                                
              print("Sum=",c)                                              


Output:                                                                                 




previous                                                                                              Next                              

Comments

Popular posts from this blog