This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day

a,b,c are integers for the following snippet.

@EO = ( 'Even' , 'Odd' ) ;

$ap = @EO[ $a % 2 ] ;

$cp = ($c % 2 == 0) ? 'Even' : 'Odd' ;

Context()->texStrings;

BEGIN_SOLUTION

$SOLUTION

\( $a \) is $ap,

$b is @EO[$b % 2],

\( $c \) is $cp

END_SOLUTION

Context()->normalStrings;

Note: neither "Context()" command is commented-out, the new BEGIN_SOLUTION is used to initiate the block, and $SOLUTION to display bolded "Solution:".

You are currently using guest access (Log in)