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
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is polymorphism what is it for and how is it used?
#include
What is difference between inheritance and polymorphism?
What are the three parts of a simple empty class?
What are the types of abstraction?
What is static modifier?
What is pure oop?
What is polymorphism explain?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
Why do while loop is used?
What are different oops concepts?
write string class as your own class in java without using any built-in function
How long to learn object oriented programming?
What exactly is polymorphism?