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 are objects in oop?
Who invented oop?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
How can you overcome the diamond problem in inheritance?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Can main method override?
What is the real life example of polymorphism?
Can a destructor be called directly?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Advantage and disadvantage of routing in telecom sector
Is abstract thinking intelligence?
What is a class and object?
What is polymorphism and its types?
What are oops functions?
What is the difference between static polymorphism and dynamic polymorphism?