Skip to main content

A C++ program to print the rectangular pattern- full explaination-educationalblock

 

A C++ program to print the rectangular pattern




Question:  Write a   C++ program to print the rectangular pattern of given rows and                       coloumns

 

Input: 1.The length or size of the row 
           2.The length or size of the coloumn

sample output: 

                     1. Enter the length of the row :  5
                         Enter the length of the coloumn: 3
                         
                          ***
                          ***
                          ***
                          ***
                          ***
                          
                        
                     2. Enter the length of the row :  5
                         Enter the length of the coloumn: 5
                          
                          ***** 
                          *****
                          *****
                          *****
                          *****


The C++ code:

This is the code for the c++ program which prints the rectangular pattern by using the hashtrick symbol. In this program for loop is used to print the repititive hashtrick symbols. Run the below program and have a look at the output once.



    













Comments

Popular posts from this blog

AP SSC 10th class biology important questions (1st lesson) with answers.

AP SSC important questions  Biology- 1st lesson 1.   Explain the structure chloroplast with a neatly labelled diagram. Structure of chloroplast 1) The chloroplast is a membranous structure, consisting of 3 membranes. 2) The intermediary fluid filled portion called as stroma is responsible for enzymatic reactions leading to the synthesis of glucose, which in turn join together to for starch. 3) Typical chloroplasts are disc shaped and are filled with colourless area called stroma. 4) They are covered by two membranes. 5) Stacks of thylakoid membranes are located in the stroma and are connected by stroma lamella. 6) Due to the presence of chlorophyll, chloroplasts are green. 7) The chlorophyll pigment is fat soluble and is located in the lipid part of the thylakoid membrane. 8) Chlorophyll is organized to form the reaction centres called photosystem-1 and photosystem-11. 2. Write the difference between light reaction and dark reaction.                   Ligh

AP and TS SSC biology important questions - 2022, CHAPTER 2 (RESPIRATION).

 10th Class SSC Biology Important Questions, Study Materials, Diagrams for AP     and TS Students as per New Syllabus 2022. see below  KEYWORDS:  AP SSC biology important questions, 10th Class Important   Questions Biology (E.M), Photosynthesis and Reproduction in Plants, Hormones   Nutrition Cellular Respiration Chapters AP SSC study material Important Biology   Questions for SSC General Science Questions for SSC important-biology-   questions-for-SSC General Science biology Questions for SSC 2022.General   science important questions for SSC MARCH 2022 chapter-wise-important-   science-biology-questions-SSC-exam Chapter-wise most important science   (Biology) questions for AP SSC Board Exams Chapter-wise important questions of   biology for 10th SSC board biology important questions for class 10 SSC 2022  biology important questions for class 10 SSC English medium biology important questions for class 10 SSC 2022  10th biology important questions and answers 2022  10th class importan

AP and TS SSC 10th class biology important questions - 2020

AP/ TS SSC 10th class important questions - 2020 BIOLOGY Hii  everyone. Here I am providing AP and TS SSC biology important questions with answers. These questions are collected by enquiring some teachers. These questions have the highest priority in their individual chapters. So please have a look at them.  keywords:  ap 10th biology important questions, ap 10th class biology important questions, ap 10th class biology important questions english medium, 10th class ssc biology important questions, 10th ssc biology important questions, ap ssc biology model papers, ts ssc biology important questions, telangana ssc biology important questions, ssc biology important questions, ap ssc biology model papers, 10th class ssc biology important questions, ap ssc biology important questions 2020,  important questions biology,  important questions of biology 10th class,  important question in biology class 10,  10th class biology important questions pdf download,  ts 10th class biology important qu