Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,076 members, 7,957,010 topics. Date: Tuesday, 24 September 2024 at 03:55 AM |
Nairaland Forum / Science/Technology / Programming / Help With A Small Qbasic Program (4655 Views)
Can Qbasic Interact With Any DBMS ? / How Can I Create Multiplication Table Using Qbasic And Fortran? PLS HELP! / Qbasic On Windows Xp (2) (3) (4)
Re: Help With A Small Qbasic Program by yutsuf(m): 9:47am On Jun 26, 2015 |
here is the code
INPUT "HOW MANY NUMBERS WOULD YOU LIKE TO ENTER" N
DIM A(N)
FOR I=1 TO N
INPUT A(I)
NEXT I
FOR I=1 TO N
FOR J= (I+1) TO N
IF A(I)>A(J) THEN
TEMP=A(J)
A(J)=A(I)
A(I)=TEMP
NEXT J
NEXT I
FOR I = 1 TO N
NEXT I
PRINT "THE MAXIMUM NUMBER IS", A(I)
END |
Re: Help With A Small Qbasic Program by Maymac(m): 1:08am On Apr 12, 2018 |
write a QBASIC program that will add 2 matrices of equal dimension and print the result out in matrix form |
About Andela Home Study Test / How To Make Simple Animation Videos..tips,tricks & Tools / Where Can I Learn Programming In Abuja?
(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. 8 |