Logo 
Search:

Assembly Language Forum

Ask Question   UnAnswered
Home » Forum » Assembly Language       RSS Feeds

triangle of stars

  Asked By: Anna11    Date: Dec 13    Category: Assembly Language    Views: 3434
  

hello everybody can you help me to draw a triangle isoceles of stars in Nasm , first the user must precise the number of lines and the color . any idea people

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Abhishek Singh     Answered On: May 22

TITLE MASM Template (main.asm)

; Description:
;
; Revision date:

INCLUDE Irvine32.inc
.data
counter dword 1;

.code
main PROC
call readint;
mov ecx,eax;
L1:

push ecx;
mov ecx,counter ;
L2:
mov al,'*';
call writechar;


loop l2;
pop ecx;
inc counter;
call crlf;
loop l1;



exit
main ENDP

end main

 
Didn't find what you were looking for? Find more on triangle of stars Or get search suggestion and latest updates.




Tagged: