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
What are the three main types of variables?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is the difference between encapsulation and polymorphism?
What are the benefits of polymorphism?
What is this pointer in oop?
What does no cap mean?
Advantage and disadvantage of routing in telecom sector
Can destructor be overloaded?
Can you explain polymorphism?
What does and I oop mean in text?
What is oops concept with example?
Why is polymorphism used?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Why do we use polymorphism in oops?
Can a varargs method be overloaded?