Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

code snippet for creating a pyramids triangle
ex

1
2 2
3 3 3

Answer Posted / k

#include<iostream.h>
int main()
{int i,j,k;
for(i=1;i<=3;i++)
{cout<<"\n";
for(j=1;j<=3-i;j++)
cout<<" ";
for(k=i;k>0;k--)
cout<<i<<" ";
}
return 0;
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is clrscr ()?

1112


while initialization of array why we use a[][2] why not a[2][]...?

2367


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1112


Is a house a shell structure?

1168


What is property type c?

1096


What is extern storage class in c?

1000


What is time complexity c?

1002


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1117


Can we declare function inside main?

1009


Explain how can you tell whether a program was compiled using c versus c++?

1105


What is data structure in c language?

1117


What is the significance of c program algorithms?

1147


What are reserved words with a programming language?

1142


What is character constants?

1190


what are # pragma staments?

2048