Post Reply 
Dealing with Integers on the Prime. (SOLVED!)
04-14-2015, 05:43 PM
Post: #8
RE: Dealing with Integers on the Prime. Help!
Hi DrD!

Thank for your suggestion,

I have a question, the program accepts the input values perfectly, just the way I wanted, but when I'm entering the values the program just don't exit, even if I press ESC or back-Space(DEL), it forces the User to enter the correct type of arguments otherwise the program won't end. how can I exit the program anytime I want?




EXPORT test()
BEGIN
local A,B,C;
repeat {A:=0,B:=0,C:=0}; // Recycles non-ntegers
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."});
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;

Spybot.

Spybot.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Dealing with Integers on the Prime. Help! - Spybot - 04-14-2015 05:43 PM



User(s) browsing this thread: 1 Guest(s)