📋 Problem Statement
Infinite Multiplication Table
Write a program that generates an infinite multiplication table using ONLY if-else statements. The table should display the multiplication of numbers starting from 1.
Write a program that generates an infinite multiplication table using ONLY if-else statements. The table should display the multiplication of numbers starting from 1.
Requirements:
- Must be valid HTML with basic doc structure (<html>, <head>, <body>, <script>)
- Use only if-else conditions (no loops or other control structures)
- Declare variables: var a = 1; var x = 1;
- Create a function named 'printTables()'
- Use getElementById to update display element
- Main logic
✅ What You're Graded On:
Test 1: Valid HTML structure
Test 2: Required variables declared
Test 3: Required function defined
Test 4: If-else logic used
Test 5: Code runs, produces output, and handles the x=10 boundary correctly
💻 Code Editor
Test Results: