Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LANGUAGE REQUIRED FOR CODE: Windows x86 Assembly Language More details in following images: A triangle with all sides equal is called an equilateral triangle. We

LANGUAGE REQUIRED FOR CODE: Windows x86 Assembly Language

More details in following images:

image text in transcribed

image text in transcribed

A triangle with all sides equal is called an equilateral triangle. We are going to learn how to print stars '*', in an equilateral Triangle shape. One possible Algorithm could be ... 1. Select the number of Stars to be printed at the base of the Triangle (also determines height in lines), Num 2. Select the center position of the top Star, in Spaces from the left margin, Tab 3. Set up an iteration (Loop) for Num times. 4. Load/Print a " "(Space) in decreasing order from Tab - 1 to Tab - Num. 5. Load/Print a "* " (Star, Space) in increasing order from 1 to Num. Equilateral Triangle Num =7 'number of Stars at the base height in lines Tab =20 'top center position Spaces from the left margin FOR I =1 TO Num FOR J =1 TO Tab - I PRINT " " NEXT J FOR J =1 TO I PRINT "* " NEXT J The output might look similar to this

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions