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

a program that can input number of records and can view it again the record

1899


What is a substring in c?

1022


how to find binary of number?

4414


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1076


explain what is fifo?

1059


In a byte, what is the maximum decimal number that you can accommodate?

1119


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1968


What are the differences between Structures and Arrays?

1186


How do you generate random numbers in C?

1180


What are the back slash character constants or escape sequence charactersavailable in c?

1165


What is a built-in function in C?

1574


When do we get logical errors?

1104


what is uses of .net

1720


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1043


What are valid signatures for the Main function?

1213