Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,156,305 members, 7,829,717 topics. Date: Thursday, 16 May 2024 at 10:56 AM

Please Help Solve This Problem With Q Basic Or Liberty Only.... - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Please Help Solve This Problem With Q Basic Or Liberty Only.... (714 Views)

Q-basic Program To Compute Simple Interest. / Programmers help me With This Problem Pls !!!!!!!!!!! / Someone Please Help Solve This Problem. (2) (3) (4)

(1) (Reply)

Please Help Solve This Problem With Q Basic Or Liberty Only.... by Ibrokane(m): 9:32am On Jul 09, 2013
Am a novice in programming... But i do have interest in it... I am facing a problem given to me by one of my lecturer and i would be pleased if you if u can just help me out in thir question.....(q basi please or libeqty)
..................
Write a loop that will generate every 3rd integer beginning with "I=" And continues for all integers that are less than 100. Calculate the sum of those integers that are easily divisible by 5
Re: Please Help Solve This Problem With Q Basic Or Liberty Only.... by Parrotpal(m): 7:30pm On Jul 09, 2013
@ops, thou am also a novice in programming cos am not more than 2 month old in programing,all thanx 2 futa! Lol! D 1st part of d questn is much easier, u wil use for-to-next statement.i.e for i=3 to 99 step 3 since u ar to generate integers divisible by 3. U may think odawise because d questn is somhow tricky. Print i,
next i, for the 2nd part u wil ve 2 use let stament e.g let j= (i mod 5=0)
print j,
sum=sum+j
print 'sum'
note: u shuld ve previously assign sum 2 b equal 2 zero at d start of d program. Hope it wil b of help.thou this is qbasic ve nt heard of liberty b4 o.

(1) (Reply)

Wennohunt Business Innovation Competition / Please Coders Of nairaland.com Help Us / Which Do I Go For?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.