a=5, b=4
Integer funn( Integer a, b)
if(a>b)
b=a
if(b>0 || a>0)
a=a+b+a+b
b=a+b+a+b
End if
a=b
End if
return a+b
End function funn( )
Answers
Answered by
16
Answer:
The function fun() calculates and returns ((1 + 2 … + x-1 + x) +y) which is x(x+1)/2 + y.
Similar questions