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...

Write a program to accept a number and to print numbers in
pyramid format?
for eg:for a no. 5
1
212
32123
4321234
543212345

Answer Posted / akshaya

#include <iostream.h>
#include<conio.h>
void main()
{
int i,n,j;
clrscr();
cout<<"
Enter the value of n:";
cin>>n;
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
cout<<" ";
}
}
}

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use oop?

1171


What are properties in oop?

1146


Why is polymorphism important in oop?

1146


What does enum stand for?

1188


program for insertion ,deletion,sorting in double link list

2750


What is interface in oop?

1187


What is cohesion in oop?

1115


What is inheritance in oop?

1094


Is react oop?

1112


Which type does string inherit from?

1160


What is the real life example of polymorphism?

1237


Plese get me a perfect C++ program for railway/airway reservation with all details.

3959


What is the difference between a constructor and a destructor?

1351


What is coupling in oops?

1223


What is polymorphism and why is it important?

1102