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.
Expert's answer

# 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 first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal