Question: You only need to submit the . c file for each question. Your questions are: Take the last three digits of your student number and
You only need to submit the c file for each question. Your questions are:
Take the last three digits of your student number and add them together and call
the answer Take the last three digits of your phone number and add them
together and call the answer Write a program that uses two loops to draw a
triangle of width and height using symbols. It should be easy to change your
program to handle different values of and
For example, if and and your program might print:
Triangle of width and height :
#
###
#####
######
Hint : Remember similar triangles, if you cut a triangle half way up parallel to
the opposite side, it will be half the width. Likewise, if you cut of the way
from a corner, it will be of the width.
Hint : You can choose what the exact shape the triangle is and what symbols to
use to print. You can even use multiple symbols, if you like!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
