To print Stars in Right Angled Triangle Shape Using C++ Programming Langugae

Program Code:

To print Stars in Right Angled Triangle Shape Using C Programming Langugae
#include<iostream>
using namespace std;
int main()
{
int i, j;
for(i=1;i<=10;i++)
{
for(j=0;j<i;j++)
cout<<"*";
cout<<"\n";
}
}

Output:

.exe file

2 comments:

Please disable your ad blocker to support this website.

Our website relies on revenue from ads to keep providing free content.