‫Hi is the programming challenge
‫the problem statement is the following Buskirk triangle given below.
‫Now ask is to bring the Asterix in this particular phone such that it forms the Pascoe triangle.
‫I suggest you obey known.
‫What are the requirements.
‫What's the thing is we need to print Strick six times what the maximum number of times and the number
‫of lines that are to be put in.
‫There is also six concentrate on the problem statement and tried to generate appropriate solution.
‫Now I go providing some solution guidelines using which you can have an approach such that you can easily
‫solve the problem.
‫Here is the first one on the maximum number of asterisks.
‫Whimpering dead you know.
‫In this case it is 6.
‫Next in a strike one time in Blaine law aims in second line through names in third line and sworn in
‫six times in the last.
‫That is sixth line if you follow this pattern then you may get some idea how to print this asterisk
‫in between.
‫We have some spaces and apps so use appropriate spaces and apps very necessary obviously we require
‫nested loops accomplish this task and give you a hint one loop is required to bring number of aims.
‫That is their task to be repeated.
‫And within that loop you need to have again iteration using some loop to print spaces and Asterix.
‫Now here I suggest you do pause WTO and be known and I on the call with your own.
‫If you're done with writing on the chord then you can match and see the solution.
‫What I'm going to give you know let's have this solution to print this as a triangle.
‫Let us begin the coding part to have the solution to print the Pascal triangle.
‫I'm including say s Judy.
‫I also touch her profile assuming that I'll be using a print of statement main function starts and ends.
‫Obviously since we are having that are done type as in Deja I'm providing that are done zero.
‫Now what is the first requirement you vineyard to print Asterix.
‫How many number of lines that we have identified.
‫It is to be six times so I'll use an aberration.
‫You can use any loop I'm using.
‫If what loop over here for I equals to one I less than or equal to 6 I plus plus I credit and this has
‫to be repeated for six time.
‫Now what is there to be repeated in this particular model is we have to give spaces for which we use
‫and that loop and we have to print as trick for which we'll be using and then that loop.
‫So first one fourth loop for printing so far this for loop I'll be using another index and this index
‫it starts from the worst one that is spaces should be maximum to minimum that is g greater than the
‫value of i dilatory just one for the first time next to two next to three legged it has to be.
‫So G has to really be reminded within this for loop I just need to print the spaces only one space now
‫in this for loop we have to print the values from say one day it is it reaches the value of i that means
‫Astra gets to be printed one time for the first time so what is we are going to print it over here is
‫as trick as trick is to be printed for Foster nine it is still one extra time I value is two so as triggers
‫to be put two dimes next four times three trick is to be put in there three times and so on.
‫Now here after printing asterisk we need to go to the next line so we're required in New Line skip sequence
‫now once we are done with this one let's have some formatted into one here so I'll be using tabs not
‫commenting on what variables you are using it in this program is going to declare all those variables
‫here i g and key up this one will fulfill the requirement whatever we have to accomplish the task let's
‫try to be check for it also over here not let us know 16 on the program and here is the output we can
‫see here but I equals to 1 2 6 here one line 2 line 3 line for line file and six times we have to repeat
‫for this one we require the outermost for loop and within this one.
‫So here eight and four taps are predicted that means output is printed using this this taps four taps
‫that's why the output is printed here now this for loop Jake was to 6 and jiggled then 1 This is used
‫for printing spaces.
‫Here are the spaces you can see the matching or here astri actually do we bring dad here.
‫But we are providing first spaces all year such that started to be put in there after that.
‫So start is printed here after printing their start we are going to the next line and again repeating
‫the same dusk there is a value is not do so it is to bring day four times space like that and the output
‫is going to be printed I hope it matches the solution what do you have next month by month you will
‫see that you mean in topics in the coming year.
‫Thank you.