Answer to Question #7620 in C++ for Yaser

Question #7620
& 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
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS