The Mother Board

Motherboards.org forums. Free tech support, motherboard ID, and more.
It is currently Thu Sep 20, 2018 1:15 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Mar 09, 2008 4:29 pm 
HI, new to the forum...
Im trying to create a program that accepts 10 whole numbers from -100 to +100, and then performs sums to calculate the sum of these numbers, and then seperate sums for the negative, and then the positive numbers. Curently I have a prompt for each input, followed by code to add it to a running total, as well as adding it to the +/- running totals.
I think im going about this a very long way....how would I let the user enter the 10 integers in one go, and then do all the sums at the end, instead of after every input.

Any advice much appreciated


Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Mar 11, 2008 7:12 am 
Offline
Mobo-fu Master
Mobo-fu Master

Joined: Sun May 06, 2001 12:01 am
Posts: 37463
Location: Netherlands
if you are following classes you should have paid attention. this looks like a typical assignment from school...

_________________
We hate rut, but we fear change.
********************************
System error, strike any user to continue...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group