EEEEERRRRRAAAA
Honorary Poster
- Joined
- Oct 28, 2018
- Posts
- 442
- Reaction
- 48
- Points
- 248
- Age
- 25
patulong mga sir...
mali pattern display ko.
dapat ganito output niya mga sir...
#include<iostream>
using namespace std;
int main()
{
for (int x=1; x<=5; x++)
{
for (int y=4; y>=x; y--)
{
cout<<" ";
}
int count=1;
for (char alphabet='A'; count<=x; alphabet++)
{
cout<<alphabet;
count++;
}
cout<<endl;
}
return 0;
}
mali pattern display ko.
dapat ganito output niya mga sir...
#include<iostream>
using namespace std;
int main()
{
for (int x=1; x<=5; x++)
{
for (int y=4; y>=x; y--)
{
cout<<" ";
}
int count=1;
for (char alphabet='A'; count<=x; alphabet++)
{
cout<<alphabet;
count++;
}
cout<<endl;
}
return 0;
}
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
Last edited: