block -- group several commands into a single command |
Syntax |
block C_1; ... ; C_n EndBlock; where each C_i is a command. |
Description |
Example |
/**/ Print "hello "; Print "world"; hello world ------------------------------- /**/ Block /**/ Print "hello "; /**/ Print "world"; /**/ EndBlock; hello world ------------------------------- /**/ use QQ[x,y]; /**/ Block /**/ PrintLn GCD([12, 24, 96]); /**/ PrintLn LCM([12, 24, 96]); /**/ PrintLn GCD([x+y, x^2-y^2]); /**/ Print LCM([x+y, x^2-y^2]); /**/ EndBlock; 12 96 x + y x^2 - y^2 ------------------------------- |