{"id":20439699,"url":"https://github.com/mounishvatti/patterns_in_cpp","last_synced_at":"2026-04-17T03:33:24.967Z","repository":{"id":212840836,"uuid":"732432354","full_name":"mounishvatti/Patterns_in_CPP","owner":"mounishvatti","description":"This repository consists of various patterns solved using C++, solving patterns helps us in understanding looping concepts, with the help of patterns you will be thorough with loops \u0026 nested loops. Happy Coding 🚀","archived":false,"fork":false,"pushed_at":"2024-01-10T17:13:44.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T07:35:36.534Z","etag":null,"topics":["loops-and-patterns","nested-loops"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mounishvatti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-16T16:51:19.000Z","updated_at":"2023-12-16T17:04:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"de12d047-66ef-4a5a-b8a2-3269a12025b9","html_url":"https://github.com/mounishvatti/Patterns_in_CPP","commit_stats":null,"previous_names":["mounishvatti/patterns_in_cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mounishvatti/Patterns_in_CPP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounishvatti%2FPatterns_in_CPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounishvatti%2FPatterns_in_CPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounishvatti%2FPatterns_in_CPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounishvatti%2FPatterns_in_CPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mounishvatti","download_url":"https://codeload.github.com/mounishvatti/Patterns_in_CPP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounishvatti%2FPatterns_in_CPP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31913652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["loops-and-patterns","nested-loops"],"created_at":"2024-11-15T09:19:03.526Z","updated_at":"2026-04-17T03:33:24.946Z","avatar_url":"https://github.com/mounishvatti.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2\u003eThis repository consists of various patterns solved using C++.\u003c/h2\u003e\n\n\u003cp\u003eSolving patterns helps us in understanding looping concepts in any programming language.\u003c/p\u003e\n\u003cp\u003eWith the help of patterns you will be thorough with loops \u0026 nested loops.\u003c/p\u003e\n\n\u003cb\u003eNote: Before solving any pattern question follow these 4 steps:\u003c/b\u003e\n\n1) For the outer loop, count the no. of lines i.e rows.\n2) For the inner loop, focus on the columns \u0026 connect them somehow to the rows.\n3) Print them inside the inner for loop\n4) Observe symmetry (optional for some patterns)\n\n## Happy Coding 🚀\n\n```\nPattern - 1 \n\n* * * * \n* * * * \n* * * * \n* * * *\n```\n\n```\nPattern - 2 \n\n* \n* * \n* * * \n* * * * \n```\n\n```\nPattern - 3 \n\n1 \n1 2 \n1 2 3  \n```\n\n```\nPattern - 4 \n\n1 \n2 2 \n3 3 3 \n```\n\n```\nPattern - 5 \n\n* * * *\n* * *\n* * \n* \n```\n\n```\nPattern - 6 \n\n1 2 3 4 5\n1 2 3 4\n1 2 3\n1 2\n1\n```\n\n```\nPattern - 7 \n\n    *    \n   ***   \n  *****  \n ******* \n*********\n```\n\n```\nPattern - 8\n\n*****\n *** \n  *  \n```\n\n```\nPattern - 9\n\n  *  \n *** \n*****\n*****\n *** \n  *\n```\n\n```\nPattern - 10\n\n*  \n** \n***\n**\n* \n```\n\n```\nPattern - 11\n\n1\n0 1\n1 0 1\n0 1 0 1\n1 0 1 0 1\n```\n\n```\nPattern - 12\n\n1      1\n12    21\n123  321\n12344321\n```\n\n```\nPattern - 13\n\n1 \n2 3 \n4 5 6 \n7 8 9 10 \n```\n\n```\nPattern - 14\n\nA \nA B \nA B C \nA B C D \n```\n\n```\nPattern - 15\n\nA \nB B \nC C C \nD D D D \n```\n\n```\nPattern - 16\n\nA \nB C \nD E F \nG H I J  \n```\n\n```\nPattern - 17\n\nA B C D \nA B C \nA B \nA \n```\n\n```\nPattern - 18\n\nA A A A \nB B B \nC C \nD\n```\n\n```\nPattern - 19\n\nD D D D \nC C C \nB B \nA \n```\n\n```\nPattern - 20\n\n   A\n  ABA\n ABCBA\nABCDCBA\n```\n\n```\nPattern - 21\n\nE \nE D \nE D C \nE D C B \nE D C B A \n```\n\n```\nPattern - 22\n\nE \nD E \nC D E \nB C D E \nA B C D E\n```\n\n```\nPattern - 23\n\n**********\n****  ****\n***    ***\n**      **\n*        *\n*        *\n**      **\n***    ***\n****  ****\n**********\n```\n\n```\nPattern - 24\n\n*        *\n**      **\n***    ***\n****  ****\n**********\n****  ****\n***    ***\n**      **\n*        *\n```\n\n```\nPattern - 25\n\n****\n*  *\n*  *\n****\n```\n\n```\nPattern - 26\n\n5 5 5 5 5 5 5 5 5 \n5 4 4 4 4 4 4 4 5 \n5 4 3 3 3 3 3 4 5 \n5 4 3 2 2 2 3 4 5 \n5 4 3 2 1 2 3 4 5 \n5 4 3 2 2 2 3 4 5 \n5 4 3 3 3 3 3 4 5 \n5 4 4 4 4 4 4 4 5 \n5 5 5 5 5 5 5 5 5 \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmounishvatti%2Fpatterns_in_cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmounishvatti%2Fpatterns_in_cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmounishvatti%2Fpatterns_in_cpp/lists"}