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 encapsulation and abstraction? How are they implemented in C++?
Write a program to reverse a string using recursive function?
Get me a number puzzle game-program
What is coupling in oops?
What is and I oop mean?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Is html an oop?
What is coupling in oop?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Why is polymorphism important in oop?
What does and I oop and sksksk mean?
What is overriding in oop?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is the real life example of polymorphism?