Computer Science, asked by ksharma3221, 3 months ago

play the
1. Write a program that will read the value of x and evaluate the following fundinn
5 for x > 0
Y =
o for x = 0
-5 for x < 0​

Answers

Answered by khanhazique20
0

Answer: Use the algorithm

if(x>0)

output 5

if(x==0)

output o or y=o     this output varies according to the understanding of the                                           question

if(x<0)

output -5

Explanation:

because in the question its asking us to give different outputs depending upon the input

Similar questions