🔒 Closed HELP PO MGA MASTER.. sa C++

Status
Not open for further replies.

EEEEERRRRRAAAA

Honorary Poster
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

  • received_410546146599799.webp
    received_410546146599799.webp
    3.6 KB · Views: 27
Status
Not open for further replies.

Similar threads

About this Thread

  • 6
    Replies
  • 345
    Views
  • 2
    Participants
Last reply from:
2pepot

Trending Topics

Online now

Members online
349
Guests online
661
Total visitors
1,010

Forum statistics

Threads
2,274,597
Posts
28,957,097
Members
1,234,335
Latest member
Unplugged18
Back
Top