Alphabet pattern in C++.


 #include<iostream.h>

#include<conio.h>

int maoin ( )

{

int i, j;

char ch='a';

for(i=1; I<=3; i++)

{

for(j=1; j<=i; j++)

{

cout<<ch<<ends;

ch++;

}

cout<<endl;

}

getch( );

return 0;

}

To run:



Output:






If you have any problems then contact us in  our 

Whatsapp group :-Join  Click join to join our group.

Join our Facebook group:- Join Click join to join our group.



No comments:

Post a Comment

theengineerschoice01@gmail.com