Python Multiplication Table Challenge

Hello connections 👋 Welcome to Day 5 of my Python problem-solving series! Learning one step at a time leads to long-term success 🚀 🧠 Day 5 Challenge: Print Multiplication Table of a Number Write a Python program to print the multiplication table of a given number. 👉 Example: Input: 5 Output: 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 ... 5 x 10 = 50 My Approach: Using For Loop num = int(input("Enter a number: ")) for i in range(1, 11): print(num, "x", i, "=", num * i) 📌 Explanation: We use a loop from 1 to 10 and multiply the number each time. Now it’s your turn 👇 Try solving it in your own way or improve this approach in the comments. Let’s learn and grow together 🚀 #Python #CodingChallenge #ProblemSolving #Programming #30DaysOfCode

To view or add a comment, sign in

Explore content categories