Friday, 4 February 2022

Python Program : 2 Write a Python Program to find summation of two numbers

 

CODE

def main():

    x=10

    y=20

    sum = x + y

    print("X's Value=",x)

    print("Y's Value=",y)

    print("Summation of X + Y =",sum)

main()

Note : Save above code as prog2.py

SCREENSHOT



No comments:

Post a Comment