🔒 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: 29
Status
Not open for further replies.

Similar threads

About this Thread

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

Trending Topics

Online now

Members online
887
Guests online
1,614
Total visitors
2,501

Forum statistics

Threads
2,294,858
Posts
29,093,600
Members
1,206,591
Latest member
willCOOK
Back
Top