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!!
1
Expert's answer
2012-10-19T08:56:59-0400
#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"; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment