# 🧩 Problem 1: Read Three Numbers
# Read three integers from input and print them separated by spaces.

# Example Input:
# 3 7 10
# Example Output:
# 3 7 10

a, b, c = map(int, input().split())
print(a, b, c)



# 🧩 Problem 2: Sum of a List
# Read an integer N (not really needed for solving),
# then read N integers as a list.
# Print the sum of all numbers in the list.

# Example Input:
# 5
# 1 2 3 4 5
# Example Output:
# 15

n = int(input())
nlist = list(map(int, input().split()))
print(sum(nlist))



# 🧩 Problem 3: Find Maximum Value
# Read a list of integers and print the maximum value.

# Example Input:
# 4
# 8 3 10 2
# Example Output:
# 10

n = int(input())
nlist = list(map(int, input().split()))
print(max(nlist))



# 🧩 Problem 4: Count Even Numbers
# Read a list of integers and count how many even numbers are in the list.

# Example Input:
# 6
# 1 2 3 4 5 6
# Example Output:
# 3

n = int(input())
nlist = list(map(int, input().split()))

count = 0
for num in nlist:
    if num % 2 == 0:
        count += 1

print(count)



# 🧩 Problem 5: Print Numbers Greater Than K
# Read N and K, then read a list of N integers.
# Print all numbers greater than K (in one line, separated by spaces).

# Example Input:
# 5 3
# 1 5 2 7 3
# Example Output:
# 5 7

n, k = map(int, input().split())
nlist = list(map(int, input().split()))

for num in nlist:
    if num > k:
        print(num, end=' ')

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: