#include<iostream>
using namespace std;
class name
{
private:
int n;
double t;
public:
void member(int p);
};
void name::member(int p)
{
n=p;
for(int i=0;i<n;i=i+2)
{
for(int j=0;j<=i;j++)
cout<<(char)(65+j);
cout<<endl;
}
};
int main()
{
int k;
name sob;
while(cin>>k)
{
sob.member(k);
}
return 0;
}
using namespace std;
class name
{
private:
int n;
double t;
public:
void member(int p);
};
void name::member(int p)
{
n=p;
for(int i=0;i<n;i=i+2)
{
for(int j=0;j<=i;j++)
cout<<(char)(65+j);
cout<<endl;
}
};
int main()
{
int k;
name sob;
while(cin>>k)
{
sob.member(k);
}
return 0;
}
No comments:
Post a Comment