Notices
General Discussion and Debate Discuss, Debate, and Converse with other Honda-Tech members in a mature, intelligent manner.
Sponsored by:
Sponsored by:

Help with Qbasic

 
Old 04-13-2010, 12:46 PM
  #1  
I tell doctors what to do
Thread Starter
 
ILcrxsi1's Avatar
 
Join Date: Jun 2005
Location: Chicago
Posts: 3,690
Likes: 0
Received 0 Likes on 0 Posts
Default Help with Qbasic

I need to change this program to run with 21 being the trip code instead of the "For x = 1 to 20" and the program needs to tally the number 21. I suck at this, but I'm sure someone here is probably really good at this and this would take them about 30 seconds to solve, so a little help please ?

CLS
For x = 1 to 20
Read num
if num > 0 then posi = posi + 1
if num < 0 then neg = neg + 1
if num = 0 then zero = 0 + 1
next x

Print" posi Neg Zero"
Print , posi,neg,zero
Data 10,2,0,-6,5,72,60,1,61,4,-80,-14,90,89,100,-42,17,55,48,21

ILcrxsi1 is offline  
Old 04-13-2010, 12:55 PM
  #2  
I tell doctors what to do
Thread Starter
 
ILcrxsi1's Avatar
 
Join Date: Jun 2005
Location: Chicago
Posts: 3,690
Likes: 0
Received 0 Likes on 0 Posts
Default Re: Help with Qbasic

Nevermind I got it



CLS
Do while num <>21
Read num
if num > 0 then posi = posi + 1
if num < 0 then neg = neg + 1
if num = 0 then zero = 0 + 1
x = x + 1
loop
Print" posi Neg Zero"
Print , posi,neg,zero
Data 10,2,0,-6,5,72,60,1,61,4,-80,-14,90,89,100,-42,17,55,48,21
ILcrxsi1 is offline  
Old 04-13-2010, 01:01 PM
  #3  
Batpool
 
Join Date: Aug 2006
Location: Orange County, CA
Posts: 6,420
Likes: 0
Received 0 Likes on 0 Posts
Default Re: Help with Qbasic

So. This thread is done?
SilentEdge is offline  
Old 04-13-2010, 01:01 PM
  #4  
I tell doctors what to do
Thread Starter
 
ILcrxsi1's Avatar
 
Join Date: Jun 2005
Location: Chicago
Posts: 3,690
Likes: 0
Received 0 Likes on 0 Posts
Default Re: Help with Qbasic

Originally Posted by SilentEdge View Post
So. This thread is done?
yeah
ILcrxsi1 is offline  
Old 04-13-2010, 01:02 PM
  #5  
Batpool
 
Join Date: Aug 2006
Location: Orange County, CA
Posts: 6,420
Likes: 0
Received 0 Likes on 0 Posts
Default Re: Help with Qbasic

LOCK AND BAN FFFFFUUUUUUUUUUUUUUUUUU
SilentEdge is offline  
 
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
kornkid21792
Tech / Misc
1
08-23-2010 05:58 AM
00zzySi
Honda Civic / Del Sol (1992 - 2000)
2
08-26-2009 01:18 PM
tpod
General Discussion and Debate
15
09-13-2007 11:45 PM
thugciti01
Honda Civic / Del Sol (1992 - 2000)
6
01-15-2007 07:45 PM
shadow103rd
Honda Civic / Del Sol (1992 - 2000)
8
10-25-2003 07:38 AM


Thread Tools
Search this Thread
Quick Reply: Help with Qbasic


Contact Us - About Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

© 2019 MH Sub I, LLC dba Internet Brands

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.