76 820
Assignments Done
Successfully Done
In June 2019

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:

Expert's answer
#include "iostream"
using namespace std;

void main(){
for (int i=10; i<=100; i+=10) cout<<i<<" ";
for (i=1; i<=20; i++) cout<<"A+";

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions