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
Why do we use oop?
What are properties in oop?
Why is polymorphism important in oop?
What does enum stand for?
program for insertion ,deletion,sorting in double link list
What is interface in oop?
What is cohesion in oop?
What is inheritance in oop?
Is react oop?
Which type does string inherit from?
What is the real life example of polymorphism?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is the difference between a constructor and a destructor?
What is coupling in oops?
What is polymorphism and why is it important?