Previous Next
0 / 33
Module DEMO-32-60DEMO-C-32

Multiplication Table

DEMO-C-32 β€’ Programming in C

Browser-only practice

Problem Statement

Write a program that reads an integer N and prints the multiplication table for N from 1 to 10.

This question require you to write one line of code to solve it, you can't change other lines its locked πŸ”’

Constraints

1 <= N <= 100

Input Format

A single integer N (1 <= N <= 100).

Output Format

10 lines showing the multiplication table.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
5
1 * 5 = 5
2 * 5 = 10
3 * 5 = 15
4 * 5 = 20
5 * 5 = 25
6 * 5 = 30
7 * 5 = 35
8 * 5 = 40
9 * 5 = 45
10 * 5 = 50
Input: 5
Sample #2
Public sample
2
1 * 2 = 2
2 * 2 = 4
3 * 2 = 6
4 * 2 = 8
5 * 2 = 10
6 * 2 = 12
7 * 2 = 14
8 * 2 = 16
9 * 2 = 18
10 * 2 = 20
Input: 2
Sample #3
Public sample
1
1 * 1 = 1
2 * 1 = 2
3 * 1 = 3
4 * 1 = 4
5 * 1 = 5
6 * 1 = 6
7 * 1 = 7
8 * 1 = 8
9 * 1 = 9
10 * 1 = 10
Input: 1
Sample #4
Public sample
12
1 * 12 = 12
2 * 12 = 24
3 * 12 = 36
4 * 12 = 48
5 * 12 = 60
6 * 12 = 72
7 * 12 = 84
8 * 12 = 96
9 * 12 = 108
10 * 12 = 120
Input: 12

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings