Answer to Question #7620 in C++ for Yaser
& write a program that can produce the following output:
0- -9: *
10- -19: **
20- -29: ***
30- -39: ****
40- -49: *****
50- -59: ******
60- -69: *******
70- -79: ********
80- -89: *********
90- -99: **********
and thank you.
1
2012-03-27T09:22:00-0400
# include<iostream.h>
# include<conio.h>
int i,k;
void main(){
for (i=0;i<=9;i++){
& cout<<i*10<<"- -"<<i*10+9<<": ";
& for (k=1;k<=i+1;k++) cout<<"*";
& cout<<"\n";
}
}
&
&
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