function W3Button19Click(Self, Sender$16) {
var n$2 = 0;
var res = 0;
var status = false;
n$2 = 5;
res = Factorial(n$2);
WriteLn(("Fatorial de 5 = "+FloatToStr$_Float_(res)));
WriteLn(("5 is No. Prime = "+BoolToStr(IsPrime(n$2))));
WriteLn(("LeastFactor de 15 = "+(LeastFactor(n$2*3)).toString()));
WriteLn(("Max de 15 e 10 = "+(Math.max(n$2*3,n$2*2)).toString()));
WriteLn(("Min de 15 e 10 = "+(Math.min(n$2*3,n$2*2)).toString()));
WriteLn(("Sign de -15 = "+($Sign((-n$2)*3)).toString()));
WriteLn(("Sqr de 15 = "+(Math.pow(n$2*3,2)).toString()));
WriteLn(("Unsigned32 de 1809530879999995 = "+(((n$2*361906175999999)>>>0)).toString()));
WriteLn(("Clamp de 15 e 10 = "+FloatToStr$_Float_(Clamp(n$2,n$2*3,n$2*2))));
n$2 = ++n$2;
WriteLn(("6 is No. Prime = "+BoolToStr(IsPrime(n$2))));
WriteLn(("Max de 18 e 12 = "+(Math.max(n$2*3,n$2*2)).toString()));
WriteLn(("Min de 18 e 12 = "+(Math.min(n$2*3,n$2*2)).toString()));
WriteLn(("Sign de 18 = "+($Sign(n$2*3)).toString()));
WriteLn(("Sqr de 18 = "+(Math.pow(n$2*3,2)).toString()));
WriteLn(("Unsigned32 de 2171437055994 = "+(((n$2*361906175999)>>>0)).toString()));
WriteLn(("Clamp de 24 e 36 = "+FloatToStr$_Float_(Clamp(n$2,n$2*4,n$2*6))));
n$2 = ++n$2;
WriteLn(("7 is No. Prime = "+BoolToStr(IsPrime(n$2))));
WriteLn(("Max de 21 e 14 = "+(Math.max(n$2*3,n$2*2)).toString()));
WriteLn(("Min de 21 e 14 = "+(Math.min(n$2*3,n$2*2)).toString()));
WriteLn(("Sign de -21 = "+($Sign((-n$2)*3)).toString()));
WriteLn(("Sqr de 21 = "+(Math.pow(n$2*3,2)).toString()));
WriteLn(("Unsigned32 de 2533343231993 = "+(((n$2*361906175999)>>>0)).toString()));
WriteLn(("Clamp de 49 e 42 = "+FloatToStr$_Float_(Clamp(n$2,n$2*7,n$2*6))));
}
|