Answer to Question #13757 in C++ for asha

Question #13757
how to write this program
Write a program to print this triangle:
**********
*********
********
*******
******
*****
****
***
**
*
1
Expert's answer
2012-08-30T09:09:28-0400

#include "iostream.h"

void main(){
int k=10;
& while (k>=0){
& for (int i=k;i>=0;i--) cout<<"*";
& cout<<"\n";
& k--;
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS