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
Can you explain polymorphism?
What is balance factor?
which feature are not hold visual basic of oop?
What are the benefits of oop?
What is abstraction in oops?
Why is polymorphism important in oop?
What is overriding in oops?
How do you achieve runtime polymorphism?
What is a superclass in oop?
What is abstraction encapsulation?
Prepare me a program for the animation of train
What is polymorphism programming?
What is oops and why we use oops?
What is a function in oop?
Explain the concepts involved in Object Oriented programming.