Answer to Question #13757 in C++ for asha
how to write this program
Write a program to print this triangle:
**********
*********
********
*******
******
*****
****
***
**
*
1
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment