By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,134 Members | 1,796 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,134 IT Pros & Developers. It's quick & easy.


P: 2
1. Assuming total is a variable,how else could you express the code total = total+2

2. Write the correct syntax of a while loop,do while loop,and for loop.

3. For the following for loop statement,how many time do the loop body execute and what is the value of the counter when the program exit the loop? (hint,if you want to, write a C++ program to show this. for(i =25;i>10 ;--i)
Mar 22 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 10K+
P: 12,392
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread. This thread should also be in the C++/C Forum.

Mar 22 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.