Python Multiplication Table Program

🚀 Learning Python – Multiplication Table Program 1.Today I practiced a simple Python program to print the multiplication table of a number. Here’s the code 👇 n = 10 for i in range(1, 11): print(n, '*', i, '=', (n * i)) ✅ Output: 10 * 1 = 10 10 * 2 = 20 10 * 3 = 30 10 * 4 = 40 10 * 5 = 50 10 * 6 = 60 10 * 7 = 70 10 * 8 = 80 10 * 9 = 90 10 * 10 = 100 🚀 Learning Python – Even/Odd & Number Check 2.Today I worked on a simple Python program to check whether a number is positive, negative, or zero. Here’s the code 👇 n = 10 if n % 2 == 0: print('The positive number:', n) elif n == 0: print('The negative number:', n) else: print('zero') ✅ Output: The positive number: 10

To view or add a comment, sign in

Explore content categories