Welcome to Dream.In.Code
Getting C++ Help is Easy!

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




HELP!

 
Reply to this topicStart new topic

HELP!

rendezmatic
2 Oct, 2007 - 07:02 AM
Post #1

New D.I.C Head
*

Joined: 2 Oct, 2007
Posts: 1


My Contributions
I really a beginner and dont know where to start about this sample problem our instructor gave us.
Write a C++ program which input number from 1-10 and output the sum of squares from 1 to 10. zero and negative are not accepted. Ex. input:4 output:30
solution: 1^2 + 2^2 + 3^2 + 4^2
: 1+4+9+16
: 30

I really need your help pls!!
User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: HELP!
2 Oct, 2007 - 07:08 AM
Post #2

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,009



Thanked: 5 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
Hi rendezmatic, welcome smile.gif

But we will not do your home work. Why you ask? I say read the forum rules. I suggest you look at some code snippets, you'll find some interesting codes, that could be helpful, also check out the tutorials.
User is offlineProfile CardPM
+Quote Post

slyth
RE: HELP!
2 Oct, 2007 - 07:32 PM
Post #3

New D.I.C Head
*

Joined: 24 Sep, 2007
Posts: 6


My Contributions
gamitan mo 'arrays'.
User is offlineProfile CardPM
+Quote Post

nirvanarupali
RE: HELP!
2 Oct, 2007 - 08:32 PM
Post #4

D.I.C Foot
Group Icon

Joined: 1 Aug, 2007
Posts: 983



Thanked: 2 times
Dream Kudos: 375
My Contributions
Please read the rules first before posting. And next time use the code tag(# button in the upper right) or just read the background where you are typing your posts. smile.gif
User is offlineProfile CardPM
+Quote Post

Pooria
RE: HELP!
3 Oct, 2007 - 12:26 AM
Post #5

New D.I.C Head
*

Joined: 3 Oct, 2007
Posts: 1


My Contributions
how to write a program that defines two variables of type integer, calculates their sum and average.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:28AM

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