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
What is purpose of inheritance?
What are different oops concepts?
What is abstraction in oops?
what are the ways in which a constructors can be called?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is a null tree?
What type of loop is a for loop?
Whats is abstraction in oops?
What is the important feature of inheritance?
When not to use object oriented programming?
What is multilevel inheritance explain with example?
How to improve object oriented design skills?
What are oops functions?
Can a destructor be called directly?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).