salam::
Mujhe c++ me triangles ,box etc ki steric me shapes chahyen,plz help anyone
salam::
Mujhe c++ me triangles ,box etc ki steric me shapes chahyen,plz help anyone
lagta ha experts leave pe hen
kia matlab
may samjha nahi
bhai kusd say bnao na logic, shabash
int i, j;
for(i=1; i<=10; i+=2)
{
for(j=1; j<=i; j++)
{ cout<<"*";}
cout<<"\n";
}
getch();
int i, j;
for(i=10; i>=1; i--)
{
for(j=1; j<=i; j++)
{ cout<<j;}
cout<<"\n";
}
getch();
int i, j,k,l;
for(i=1; i<=5; i++)
{
for(j=1;j<5;j++)
cout<<" ";
for(k=1;k<=i;k++)
cout<<"*";
for(l=j; l<=5; l++)
cout<<" ";
cout<<endl ;
}
Bookmarks