{"id":860,"date":"2021-11-04T12:18:04","date_gmt":"2021-11-04T12:18:04","guid":{"rendered":"https:\/\/ethosspace.com\/programmers\/?p=860"},"modified":"2022-01-03T09:59:48","modified_gmt":"2022-01-03T09:59:48","slug":"math-tables-up-to-n-numbers-in-c-language","status":"publish","type":"post","link":"https:\/\/ethosspace.com\/programmers\/math-tables-up-to-n-numbers-in-c-language\/","title":{"rendered":"C Program to print Math tables up to n numbers"},"content":{"rendered":"\n<p>This c program prints math tables up to n number. The program accepts user input. Using for loop we are printing the math table vertically.<br>To achieve math table output check the below c output and code.<\/p>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-c\" data-lang=\"C\"><code>Up to which number you need to print table      10\n\n        1       2       3       4       5       6       7       8       9       10\n        2       4       6       8       10      12      14      16      18      20\n        3       6       9       12      15      18      21      24      27      30\n        4       8       12      16      20      24      28      32      36      40\n        5       10      15      20      25      30      35      40      45      50\n        6       12      18      24      30      36      42      48      54      60\n        7       14      21      28      35      42      49      56      63      70\n        8       16      24      32      40      48      56      64      72      80\n        9       18      27      36      45      54      63      72      81      90\n        10      20      30      40      50      60      70      80      90      100<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-c\" data-lang=\"C\"><code>\/\/Program to display math table up to n number vertically\n#include &lt;stdio.h&gt;\nint main () {\n  int tNo,i,j;\n  printf(&quot;\\n\\tUp to which number you need to print table\\t&quot;);\n  scanf(&quot;%d&quot;,&tNo);\n  for(i=1;i&lt;=10;i++)\n  {\n      printf(&quot;\\n&quot;);\n      for (j=1;j&lt;=tNo;j++)\n      printf(&quot;\\t%d&quot;,j*i);\n    }\n   return 0;\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This c program prints math tables up to n number. The program accepts user input. Using for loop we are printing the math table vertically.To achieve math table output check the below c output and code. Output<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-860","post","type-post","status-publish","format-standard","hentry","category-c-language"],"aioseo_notices":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"sparkling-featured":false,"sparkling-featured-fullwidth":false,"tab-small":false},"uagb_author_info":{"display_name":"program45_-rt8nb","author_link":"https:\/\/ethosspace.com\/programmers\/author\/program45_-rt8nb\/"},"uagb_comment_info":0,"uagb_excerpt":"This c program prints math tables up to n number. The program accepts user input. Using for loop we are printing the math table vertically.To achieve math table output check the below c output and code. Output","_links":{"self":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/comments?post=860"}],"version-history":[{"count":4,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"predecessor-version":[{"id":1217,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/860\/revisions\/1217"}],"wp:attachment":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}