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