#include<stdio.h>
int main()
{
int i,j;
for (i='A'; i<='E'; i++)
{
for (j='A'; j<='E'; j++)
{
if (j<i)
printf("%c",j);
else
printf("%c",i);
}
printf("\n");
}
return 0;
}
#include<iostream.h>
int main()
{
char i,j;
for (i='A'; i<='E'; i++)
{
for (j='A'; j<='E'; j++)
{
if (j<i)
cout<<j;
else
cout<<i;
}
cout<<endl;
}
return 0;
}
class PatternProg
{
public static void main(String args[])
{
for (char i = 'A'; i <= 'E'; i++)
{
for (char j = 'A'; j <= 'E'; j++)
{
if (j < i)
{
System.out.print(j);
}
else
{
System.out.print(i);
}
}
System.out.println();
}
}
}
using System;
class PatternProg
{
public static void Main()
{
for (char i = 'A'; i <= 'E'; i++)
{
for (char j = 'A'; j <= 'E'; j++)
{
if (j < i)
{
Console.Write(j);
}
else
{
Console.Write(i);
}
}
Console.WriteLine();
}
Console.ReadKey(true);
}
}
for x in 'ABCDE':
for y in 'ABCDE':
if y < x:
print(y, end="")
else:
print(x, end="")
print()
"""
Another way
for x in range(65, 70):
for y in range(65, 70):
if y < x:
print(chr(y), end="")
else:
print(chr(x), end="")
print()
"""