Answer Posted / nash
#include <iostream>
using namespace std;
int main()
{
int i, j, k, m = 10, n;
for (i=0; i<=10; i++){
// Insert one loop to cal culate space to
be kept at start point
for (j=1; j<=m; j++){
cout << " ";
}
for (k=0; k<=i; k++){
cout << " *"; // put here "space
*" so all aligns properly like star
}
cout << '\n';
m--;
}
cin >> n;
return 0;
}
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Why is there no multiple inheritance?
When not to use object oriented programming?
Why is oop useful?
Why interface is used?
What is difference between abstraction and encapsulation?
What are the 3 principles of oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is this pointer in oop?
What is a class oop?
What is polymorphism what are the different types of polymorphism?
What is encapsulation in oop?
What are different oops concepts?
What are the types of abstraction?
What is difference between inheritance and polymorphism?