is code se me ne single loop se ye pattern generate kya he
#include<constream.h>
*
**
***
****
*****
void Main()
{
char s = "";
for (int i = 1; i <= 5; ++i)
{
s += "*";
cout<<s;
}
getch();
}
so plz mujahe is tarah ka pattern chayea wo b single loop me to plz help urgent
ye pattern single loop me bana k dain
*****
****
***
**
*
Bookmarks