Computer Science, asked by S0385, 7 months ago

Write a program to get 2 string variables and 2 number variables from the user. (i). Concatenate and display the string (ii). Multiply the two number and display

Answers

Answered by faseelaandru
2

Python code

num_1 = int(input("Enter the first number: "))

num_2 = int(input("Enter the second number: "))

string_1 = input("Enter the first string: ")

string_2 = input("Enter the second string: ")

#concantenate the strings the user have entered

print("What you have entered is " + string_1 + " " +  string_2)

#add the sum of the integers the user have entered

print("The sum of the digits are", num_1 + num_2)

Similar questions