Computer Science, asked by mercynagaraju, 3 months ago

Rewrite the following using ternary operator a) if (age>=18) System.out.println(“Eligible to vote”) else System.out.println(“not Eligible to vote”)

Answers

Answered by Anonymous
4

Answer:

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

if (age>=18):

       print("Congrats! You are eligible to vote!")

else:

        print("Sorry! You are not eligible to vote")

So friend, this was your Python program answer...Pls mark as BRAINLIEST if my efforts were helpful to you...

Similar questions