Answer Posted / shani jaiswal
#include <iostream.h>
int main()
{
int a,b,c,d=5,e=1,f=3;
for(c=1;c<=d;c++)
{
for(a=0;a<f;a++)
cout<<" ";
for(b=0;b<e;b++)
cout<<"* ";
cout<<'\n';
d--;
e++;
f--;
}
return 0;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why oops is important?
What is difference between polymorphism and inheritance?
Explain virtual inheritance?
What are the important components of cohesion?
What is class and object with example?
What is class and example?
What do you mean by Encapsulation?
Can static class have constructor?
What are the benefits of oop?
What is use of overloading?
What is the difference between a mixin and inheritance?
What is the purpose of polymorphism?
Can a destructor be called directly?
What are objects in oop?
How does polymorphism work?