Write a program to find the biggest even number from the given input.
Input: Positive numbers
Output: Display the largest even number.
tot=int(input("Enter the N number: ")) list1=[] for i in range(tot): d=int(input()) list1.append(d) list1.sort() list2=[] for i in range(tot): if list1[i]%2==0: list2.append(list1[i]) print("Largest even number: {}".format(list2[len(list2)-1])) ''' Input: Enter the N number: 5 Output: 199 191 991 2 551 Largest even number: 2 '''
More Codes to Fcuk
- Armstrong Number
- Find the biggest even number
- Program to replace every element on right side
- Compute the frequency of the note
- Print all Possible Combinations from three Digits.
- Get number n and Compute n+nn+nnn
- Print Cube root of the given number
- Convert number into binary, octal and hexa
- Return maximum number of operations performed on array.
- Determine the encryption key
- Find the count of numbers having a prime number in their binary representation.
- Fibonacci Series up to given n numbers
- Help Alice find the route to her home
Explore
- Quantum Mechanics relation with quantum computing
- Unzipping Files using Python
- An Algorithm which accepts n integer values and calculates the average and prints it.
- How can Quantum Computing merge with Virtual Reality ? !
- Blockchain and Cryptocurrency. And their relations with Virtual Reality !!