1 2 3 4 5 6 7 8 9 10 11 12 | dim x,y cls input "BBEDITE X=",X if x< 0 then y= 2 *x^ 2 - 3 *x+ 5 elseif x> 2 then y= 4 *|!REG3XP3!>cos(x)^ 2 else y= 3 *(x- 1 )^( 1 / 3 ) end if print y end |
1 2 3 4 5 6 7 8 9 10 11 12 | dim x,y cls input "BBEDITE X=",X if x< 0 then y= 2 *x^ 2 - 3 *x+ 5 elseif x> 2 then y= 4 *|!REG3XP3!>cos(x)^ 2 else y= 3 *(x- 1 )^( 1 / 3 ) end if print y end |