Sequential Programs
Sequential Programs 1. WAP to display sum of two integer numbers. x = 2 y = 3 result = x+ y print("The sum is:",result) Output: The sum is: 5 WAP to display sum of two integer numbers given by the user. 1.1 x = int(input("Enter the first number:")) y = int(input("Enter the second number:")) result = x+ y print("The sum is:",result) Output: Enter the first number:2 Enter the second number:3 The sum is: 5 1.2 x = int(input("Enter the first number:")) y = int(input("Enter the second number:")) result = x+ y print(f"The sum of {x} and {y} is: {result}") Output: Enter the first number:2 Enter the second number:3 The sum of 2 and 3 is: 5 1.3 x = float(input("Enter first number:")) y = float(input("Enter second number: ")) sum = x + y print("The sum of {0} and {1} is {2}".format(x, y, sum)) Output: Enter ...