RosettaCodeData/Task/Conditional-structures/RLaB/conditional-structures-2.rlab

9 lines
130 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
if (x==1)
{
// do something if x is 1
y = const.pi;
else
// do something if x is not 1
y = sin(const.pi*(1-x)) / (1-x);
}