O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
m = int(input("Enter value of m: ")) n = int(input("Enter value of n: ")) total = 0 for i in range(m, n + 1): if i % 2 != 0: pass # Skip odd numbers else: total += i print("Sum of even numbers =", total)
▶ Run Code
🖥 Output: