What's new

Help HELP PO MGA MASTER.. sa C++

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;
}
Screenshot_2021-06-05-00-29-18.png
 

Attachments

Last edited:
welcome TS, follow lungs para mabilis pag may tanong 😉
 
Last edited by a moderator:

Similar threads

Back
Top