Logo 
Search:

Assembly Language Forum

Ask Question   UnAnswered
Home » Forum » Assembly Language       RSS Feeds

Print a triangle to console (2)

  Asked By: Art    Date: Nov 02    Category: Assembly Language    Views: 1676
  

Develop an 8086 assembly program that reads from console a number N and prints to
console a triangle composed by N rows using “*” chars, as in the following diagram. For terminal console
compatibility reasons, you are asked to check that the maximum number of column is 80.
Example:
How many row for the triangle? = 12
*
***
*****
*******
*********
***********
*************
***************
*****************
*******************
*********************
***********************
Please note that the number of columns at the triangle base is given by the following: nCol = nRow * 2 – 1.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Print a triangle to console (2) Or get search suggestion and latest updates.




Tagged: