{"id":109518,"date":"2025-05-18T15:40:19","date_gmt":"2025-05-18T12:10:19","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/day-44pattern-program-454g\/"},"modified":"2025-05-18T15:40:19","modified_gmt":"2025-05-18T12:10:19","slug":"day-44pattern-program-454g","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/day-44pattern-program-454g\/","title":{"rendered":"\u0631\u0648\u0632 44: \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0644\u06af\u0648\u06cc"},"content":{"rendered":"<p><strong>Notes1:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training {\npublic static void main(String[] args) {\n    for(int end = 1; end&lt;=5; end++)\n    {\n    for(int col = 1; col&lt;=end; col++)     \/\/1 2\n        {\n        System.out.print(col+\" \");\n        }\n    System.out.println();  \n    }\n}\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>1 <br \/>\n1 2 <br \/>\n1 2 3 <br \/>\n1 2 3 4 <br \/>\n1 2 3 4 5 <\/p>\n<p><strong>Notes2:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training2 {\npublic static void main(String[] args) {\n    for(int end = 5; end&gt;=1; end--)\n    {\n    for(int col = 1; col&lt;=end; col++)\n        System.out.print(col + \" \"); \n    System.out.println(); \n    }\n}\n}\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>1 2 3 4 5 <br \/>\n1 2 3 4 <br \/>\n1 2 3 <br \/>\n1 2 <br \/>\n1 <\/p>\n<p><strong>Notes3:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training3 {\n    public static void main(String[] args) {\n        for(int end = 1; end&lt;=5; end++)\n        {\n        for(int col = 1; col&lt;=end; col++)\n            System.out.print(end+\" \"); \n        System.out.println(); \n        }\n    }\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>1 <br \/>\n2 2 <br \/>\n3 3 3 <br \/>\n4 4 4 4 <br \/>\n5 5 5 5 5 <\/p>\n<p><strong>Notes4:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training4 {\n    public static void main(String[] args) {\n\n        for(int row=1; row&lt;=5; row++)\n        {\n        for(int col= 1 ; col&lt;=6-row; col++) \n            {   \n            System.out.print(\"* \"); \n            }\n        System.out.println();\n        }\n    }\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<ul>\n<li>* <\/li>\n<li>\n<\/li>\n<\/ul>\n<p><strong>Notes5:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training5 {\npublic static void main(String[] args) {\n    for(int row=1; row&lt;=5; row++)\n    {\n    for(int col= 1; col&lt;=6-row; col++)\n        {\n        System.out.print(col +\" \"); \/\/  1   2   3   4   5\n        }\n    System.out.println();\n    }\n}\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>1 2 3 4 5 <br \/>\n1 2 3 4 <br \/>\n1 2 3 <br \/>\n1 2 <br \/>\n1 <\/p>\n<p><strong>Notes6:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training6 {\npublic static void main(String[] args) {\n    for(int row=1; row&lt;=5; row++)\n    {\n    for(int col= 1; col&lt;=6-row; col++)\n        {\n        System.out.print(row+\" \"); \/\/  1   2   3   4   5\n        }\n    System.out.println();\n    }\n}\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>1 1 1 1 1 <br \/>\n2 2 2 2 <br \/>\n3 3 3 <br \/>\n4 4 <br \/>\n5 <\/p>\n<p><strong>Notes7:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training7 {\npublic static void main(String[] args) {\n    for(int row=1; row&lt;=5; row++)\n    {\n    for(int col= 1; col&lt;=6-row; col++)\n        {\n        System.out.print(col*row +\" \"); \/\/  1   2   3   4   5\n        }\n    System.out.println();\n    }\n}\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>1 2 3 4 5 <br \/>\n2 4 6 8 <br \/>\n3 6 9 <br \/>\n4 8 <br \/>\n5 <\/p>\n<p><strong>Notes8:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training8 {\npublic static void main(String[] args) {\n    for(int row=1; row&lt;=5; row++)\n    {\n    for(int col= 1; col&lt;=6-row; col++)\n        {\n        System.out.print(row+col+\" \"); \/\/  1   2   3   4   5\n        }\n    System.out.println();\n    }\n}\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>2 3 4 5 6 <br \/>\n3 4 5 6 <br \/>\n4 5 6 <br \/>\n5 6 <br \/>\n6 <\/p>\n<p><strong>Notes9:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training9 {\n    public static void main(String[] args) {\n        for(int row=1; row&lt;=5; row++)\n        {\n        for(int col= 1; col&lt;=6-row; col++)\n            {\n            System.out.print(row+col-1+\" \"); \n            }\n        System.out.println();\n        }\n    }\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>1 2 3 4 5 <br \/>\n2 3 4 5 <br \/>\n3 4 5 <br \/>\n4 5 <br \/>\n5 <\/p>\n<p><strong>Notes10:<\/strong>\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>package Pattern;\n\npublic class Training10 {\n    public static void main(String[] args) {\n        for(int row=1; row&lt;=5; row++)\n        {\n        for(int col= 1; col&lt;=6-row; col++)\n            {\n            System.out.print(6-col+\" \"); \/\/  1   2   3   4   5\n            }\n        System.out.println();\n        }\n    }\n}\n\n<\/code><\/pre>\n<\/div>\n<p><strong>\u062e\u0631\u0648\u062c\u06cc:<\/strong><\/p>\n<p>5 4 3 2 1 <br \/>\n5 4 3 2 <br \/>\n5 4 3 <br \/>\n5 4 <br \/>\n5 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Notes1: package Pattern; public class Training { public static void main(String[] args) { for(int end = 1; end&lt;=5; end++) { for(int col = 1; col&lt;=end; col++) \/\/1 2 { System.out.print(col+&#8221; &#8220;); } System.out.println(); } } } \u062e\u0631\u0648\u062c\u06cc: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Notes2: package Pattern; &hellip;<\/p>\n","protected":false},"author":2,"featured_media":109519,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-109518","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/109518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=109518"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/109518\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/109519"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=109518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=109518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=109518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}