Recent

Comments

Follow us on Facebook

Sunday 12 November 2017

output Star Triangle in c++

output Star Triangle in c++

#include<iostream.h>
#include<conio.h>
using namespace std;
 main()
{
 int i, j;
 for(i=5;i>=1;i--)
{
for(j=1;j<=i;j++)
{
cout<<"*";
}
cout<<"\n";
}
getch();
}

Output

* * * * *
* * * *
* * *
* *
*

0 on: "output Star Triangle in c++"

Write a program, that takes 16-Elements in Two-Dimensional-Array that has 4 rows & 4 columns, then display the diagonal of Matrix.

Write a program, that takes 16-Elements in Two-Dimensional-Array that has 4 rows & 4 columns, then display the diagonal of Matrix. ...

propeller ads

PropellerAds