{"id":12045,"date":"2021-09-30T15:00:51","date_gmt":"2021-09-30T09:30:51","guid":{"rendered":"https:\/\/python-programs.com\/?p=12045"},"modified":"2021-11-22T18:34:27","modified_gmt":"2021-11-22T13:04:27","slug":"python-program-to-print-the-pyramid-of-horizontal-number-tables","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-the-pyramid-of-horizontal-number-tables\/","title":{"rendered":"Python Program to Print the Pyramid of Horizontal Number Tables"},"content":{"rendered":"

Are you new to the java programming language? We recommend you to ace up your practice session with these Basic Java Programs Examples<\/a><\/p>\n

Given the number of rows, the task is to Print the Pyramid of Horizontal Number Tables in C, C++, and Python.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given number of rows =9<\/pre>\n

Output:<\/strong><\/p>\n

1 \r\n2 4 \r\n3 6 9 \r\n4 8 12 16 \r\n5 10 15 20 25 \r\n6 12 18 24 30 36 \r\n7 14 21 28 35 42 49 \r\n8 16 24 32 40 48 56 64 \r\n9 18 27 36 45 54 63 72 81<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given number of rows =13<\/pre>\n

Output:<\/strong><\/p>\n

1 \r\n2 4 \r\n3 6 9 \r\n4 8 12 16 \r\n5 10 15 20 25 \r\n6 12 18 24 30 36 \r\n7 14 21 28 35 42 49 \r\n8 16 24 32 40 48 56 64 \r\n9 18 27 36 45 54 63 72 81 \r\n10 20 30 40 50 60 70 80 90 100 \r\n11 22 33 44 55 66 77 88 99 110 121 \r\n12 24 36 48 60 72 84 96 108 120 132 144 \r\n13 26 39 52 65 78 91 104 117 130 143 156 169<\/pre>\n

Program to Print the Pyramid of Horizontal Number Tables in C, C++, and Python<\/h2>\n

Below are the ways to Print the Pyramid of Horizontal Number Tables in C, C++, and Python.<\/p>\n