Dealing with Integers on the Prime. (SOLVED!)
|
04-14-2015, 09:28 PM
(This post was last modified: 04-14-2015 09:31 PM by DrD.)
Post: #10
|
|||
|
|||
RE: Dealing with Integers on the Prime. Help!
(04-14-2015 05:43 PM)Spybot Wrote: >>> how can I exit the program anytime I want? You can always exit the program by using the "On" key. If you want to exit the repeat loop, insert a test condition, (example in bold), after the input statement: EXPORT test() BEGIN local A,B,C; repeat {A:=0,B:=0,C:=0}; // Recycles non-integers INPUT({{A,[0],{10,15,1}},{B,[0],{40,15,1}},{C,[0],{70,15,1}}},"STANDARD FORM",{"A:","B:","C:"},{"Coefficient A must be a Positive Integer.","Coefficient B must be an Integer.","Coefficient B must be an Integer."}); If (A==B)==C==0 then return "Done"; end; // No inputs changed, just "Enter" at input prompt until fp(A)==0 AND A≥0 AND fp(B)==0 AND fp(C)==0; PRINT(); PRINT("Values are Valid."); PRINT("A="+A+" B="+B+" C="+C); END; |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Dealing with Integers on the Prime. (SOLVED!) - Spybot - 04-13-2015, 05:23 AM
RE: Dealing with Integers on the Prime. Help! - Spybot - 04-13-2015, 09:26 PM
RE: Dealing with Integers on the Prime. Help! - Tim Wessman - 04-13-2015, 10:12 PM
RE: Dealing with Integers on the Prime. Help! - Spybot - 04-13-2015, 10:35 PM
RE: Dealing with Integers on the Prime. Help! - Han - 04-14-2015, 12:23 AM
RE: Dealing with Integers on the Prime. Help! - Spybot - 04-14-2015, 03:11 AM
RE: Dealing with Integers on the Prime. Help! - DrD - 04-14-2015, 11:18 AM
RE: Dealing with Integers on the Prime. Help! - Spybot - 04-14-2015, 05:43 PM
RE: Dealing with Integers on the Prime. Help! - DrD - 04-14-2015 09:28 PM
RE: Dealing with Integers on the Prime. Help! - Han - 04-14-2015, 06:14 PM
RE: Dealing with Integers on the Prime. Help! - Spybot - 04-14-2015, 10:17 PM
|
User(s) browsing this thread: 1 Guest(s)