Float f=0.1
If(f=0.1)
printf("yes")
else
printf("no")
Answers
Answered by
1
Answer:
no
because in the datatype float f is capital letter
Answered by
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
English,
6 months ago
English,
6 months ago
Computer Science,
6 months ago
Math,
1 year ago
Business Studies,
1 year ago
English,
1 year ago
English,
1 year ago