Skip to main content
Skip to content

Loops & Patterns · Beginner

Multiplication Table (Pahada) in Hindi Code

Print the pahada of any number with a chalo loop.

The program

Edit anything and press Run. The output below was produced by running this exact code.

Expected output

Press Run to try it

--- Pahada 9 ka ---9 x 1 = 99 x 2 = 189 x 3 = 279 x 4 = 369 x 5 = 459 x 6 = 549 x 7 = 639 x 8 = 729 x 9 = 819 x 10 = 90

How it works

The whole program is one chalo loop: start i at 1, keep going while i <= 10, add 1 after each round. Each round prints one line of the table.

bol(number, "x", i, "=", number * i) prints five values separated by spaces, which lines the table up neatly. Change number at the top to print any other pahada, or change the 10 to make the table longer.