Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,911 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,172 people online right now. Registration is fast and FREE... Join Now!




coding help

 
Closed TopicStart new topic

coding help

grimmben
4 Dec, 2007 - 08:43 PM
Post #1

New D.I.C Head
*

Joined: 25 Nov, 2007
Posts: 27


My Contributions
CODE
//Ch7AppE09.cpp – uses a for loop and a while loop
//to display the squares of the even numbers from 10 through 25
//Created/revised by <your name> on <current date>

#include <iostream>

using std::cout;
using std::endl;

int main()
{
    
    //enter the appropriate for statement
for (int count = 0; count >= 5; count = count - 1) {
        cout << count << endl;
    }
  
    //enter the appropriate while statement
    while (count >= 0)
    {
        //add 5 to counter
        count = count * 5;
    }  //end while

    return 0;
}   //end of main function


User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Coding Help
4 Dec, 2007 - 08:57 PM
Post #2

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,270



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
Alrighty Ben. This is pretty much the last time this is going to be said.

Don't just post your code. Tell us what's wrong with it... what do you need help with?

This is a formal warning. You've got 27 posts here, you should know better by now. You've had at least 5 other threads that you've done the exact same thing and each time someone has to ask you to explain the problem. We're not mind readers. And we're not going to do your homework for you. Nothing pisses me off more than someone that takes advantage of my community like that.

It's a waste of our time to have to ask you EVERY time what you need help with. If you do it again, I'm going to kindly ask that you post your questions elsewhere.

K?
User is online!Profile CardPM
+Quote Post

NickDMax
RE: Coding Help
4 Dec, 2007 - 08:59 PM
Post #3

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,869



Thanked: 53 times
Dream Kudos: 550
My Contributions
As long as we are chiding: Please give your topics descriptive titles and descriptions 'coding help' will not be very useful to those who may have similar issues.
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Coding Help
4 Dec, 2007 - 09:01 PM
Post #4

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,270



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
You know what. This is actually the second time in the past 5 minutes I've seen a copy/pasted homework assignment from grimmben and I see he's been warned in the past not to do that crap. So. I'm closing all his threads and suspending his account.

Good bye.
User is online!Profile CardPM
+Quote Post

Closed TopicStart new topic
Time is now: 1/8/09 01:41PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month