Need a project done?

C++ Programming Developer

Search This Blog

Function to draw a right angle triangle

Write a function to draw a right angle triangle.


#include<iostream>
void Draw_Asterisks();
using namespace std;

int main()
{
Draw_Asterisks();
}

void Draw_Asterisks()
{
for (int lines = 1; lines<=5; lines++)
{
for (int i = 1; i<=2*lines-1 ; i++)
cout<<"*";

cout<<endl;
}
}
"Don't let anyone ever make you feel like you don't deserve what you want."