Program to Display Lower Triangular Green Matrix Pattern with Random Numbers.
#include <iostream>
#include<stdlib.h>
using namespace std;
int main( )
{
system("COLOR A"); //Function to make Textcolor GREEN
start:
int i,j;
short int x;
x=rand();
for(j=1; j<=i; j++)
{
for(i=1; i<=10; i++)
{
if(i<=j)
cout<<x;
continue;
}
cout<<"\n";
}
cout<<"\n";
goto start;
}
#include <iostream>
#include<stdlib.h>
using namespace std;
int main( )
{
system("COLOR A"); //Function to make Textcolor GREEN
start:
int i,j;
short int x;
x=rand();
for(j=1; j<=i; j++)
{
for(i=1; i<=10; i++)
{
if(i<=j)
cout<<x;
continue;
}
cout<<"\n";
}
cout<<"\n";
goto start;
}