Recent

Comments

Follow us on Facebook

Sunday 12 November 2017

* Pattern in C++

* Pattern in C++

Print Star Triangle

#include<iostream>
#include<conio.h>
using namespace std;
 main()
{
int i,j;

for(i=1; i<=6; i++)
{
for(j=1; j<i; j++)
{
cout<<"*";
}
cout<<"\n";
}
getch();
}

Output

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

0 on: "* Pattern 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