Computer Science, asked by Rajatr869, 5 months ago

Display first name,last name,email and salary only if salary >10000and last name is king?

Answers

Answered by faseelaandru
1

Python Code

first_name = input("Enter your first name: ")

second_name = input("Enter your second name: ")

salary = int(input("Enter your salary: "))

email = input("Enter your email address: ")

if(salary > 10000 && last_name == "King" ):

    print("Your name is "  + first_name + " " +   last_name+ " your email is " +                       email+ "and your salary is " + salary)

else:

     print("Nothing to display")

Similar questions