![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
#include <stdio.h>
int main(void)
{
int sales[5][4] =
{
{20, 30, 40, 80},
{6, 23, 0, 28},
{11, 83, 48, 61},
{12, 1, 4, 6},
{19, 21, 28, 50}
};
int myCol, i, myTotal = 0;
for(i = 0; i <= 4; i++)
{
myTotal = 0;
for (myCol = 0; myCol <= 3; myCol++)
myTotal = myTotal + sales[i][myCol];
printf("The total sale of Dealer %d is %d\n", i+1, myTotal);
}
return 0;
}
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
|
#12 |
|
Newbie
Join Date: May 2006
Posts: 4
Rep Power: 0
![]() |
Thanks everyone
Thanks to nnxion,morzel,sane,the dark for sharing your knowledge
god bless u |
|
|
|
|
|
#13 | |
|
Sexy Programmer
|
Quote:
What does it matter if someone wants to learn C even if they are 26 or w/e age? I would like to learn C some day. Will you go to me and say, "why are you learning C..."? If someone picks that language or just wants to experience I dont think you should have a say in their choice of a programming language.
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
|
#14 |
|
Programming Guru
![]() ![]() ![]() |
Age has nothing to do with programming... only the ability to read, write, type and think logically with an analytical mindset. I've seen this in 10 year olds. I also had a 60+ year old in a few of my higher level courses back in college, which included some projects in C.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#15 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
C wasn't even around when I was 26. Do I need to unlearn what little of it I know, because I learned it late?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#16 |
|
Sexy Programmer
|
Well my point, I don't like people insulting others because of their age and wanting to learn a language that's over 3 decades old.
@DaWei: You are really old! lol
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#17 | |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Quote:
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
|
#18 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#19 | |
|
Programming Guru
![]() ![]() |
Quote:
Wow... did you ever take what I said in the complete wrong direction... By the way, Morzel and The Dark. You both said something that I had already mentioned in my post. I gave him all he needed to know to finish the program, so I wouldn't consider my intentions insufficient. Especially since he is doing this to learn for what seems to be a paying job... I'd be careful how much you tell him. Never want to dig yourself in to a hole. I doubt any good programmers out there would have appreciated hand holding when they first started. I know I didn't... I had no Internet and knew zero programmers... |
|
|
|
|
|
|
#20 | ||
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
Quote:
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|