#include<stdio.h>
#include<math.h>
int main()
{
int size=3; //limit
int i,j;
for(i=size; i>=-size; i--)
{
for(j=abs(i); j<=size; j++)
{
printf("%c",j+65); //65->ASCII of 'A'
}
printf("\n");
}
return 0;
}
#include<iostream.h>
#include<math.h>
int main()
{
int size=3; //limit
int i,j;
for(i=size;i>=-size;i--){
for(j=abs(i);j<=size;j++)
{
cout<<char(j+65); //65->ASCII of 'A'
}
cout<<endl;
}
return 0;
}
class PatternProg
{
public static void main(String args[])
{
int size = 3; //limit
int i;
int j;
for (i = size;i >= -size;i--)
{
for (j = Math.abs(i);j <= size;j++)
{
System.out.print((char)(j + 65));
}
System.out.print("\n");
}
}
}
using System;
class PatternProg
{
public static void Main()
{
int size = 3; //limit
for (int i = size; i >= -size; i--)
{
for (int j = Math.Abs(i); j <= size; j++)
{
Console.Write((char)(j + 65));
}
Console.WriteLine();
}
Console.ReadKey(true);
}
}
size = 3
for x in range(size, -(size + 1), -1):
for y in range(abs(x), size + 1):
print(chr(y + 65), end="")
print()