Answer to Question #16604 in C++ for Hunter

Question #16604
I have a few questions: 1) Write a for loop that will print: 10 20 30 40 50 60 70 80 90 100 2)Write a while loop that will print an "A+" each time it loops. It should print a total of 20 "A+"'s. 3)Use for or while loops to produce the following output: &&&&& &&&&& &&&&& &&&&& &&&&& &&&&& &&&&& &&&&& Thanks!!
Expert's answer
#include "iostream"
using namespace std;

void main(){
for (int i=10; i<=100; i+=10) cout<<i<<" ";
cout<<"\n";
for (i=1; i<=20; i++) cout<<"A+";
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