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
write a program to find 2 power of a 5digit number with out using big int and exponent ?
can inline function declare in private part of class?
what is the sylabus for priliminaries?
What is stream in oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is object in oop with example?
What is the point of oop?
Prepare me a program for the animation of train
What are benefits of oop?
What are properties in oop?
What is the difference between inheritance and polymorphism?
What type of loop is a for loop?
What is polymorphism used for?
What is the difference between abstraction and polymorphism?
Why multiple inheritance is not possible?