Computer Science, asked by adarshsinghrajp8747, 1 year ago

Float f=0.1
If(f=0.1)
printf("yes")
else
printf("no")

Answers

Answered by mahi2868
1

Answer:

no

because in the datatype float f is capital letter

Answered by lovingheart
0

Yes

Considering above piece of information as an algorithm

Here an value of 0.1 is assigned for a floating variable and then we are trying to check whether f value is equivalent to the hard coded value 0.1. If the condition is true then we trying to print the string “Yes” otherwise if there is a mismatch then we are expecting an output of No. If loops always compare and return a Boolean which is true or false. In this case since f=0.1, it returns a Boolean which is True and hence “Yes” is printed.

Similar questions