Suppose x and y are floating-point variables that have been assigned the values x = 9.8, y = 4.9. Determine the value of x % y.
Answers
ndnsnnababbsbxbhajabcbnsjqg dB ajtnkdylxukayjwyjtwhafbFjwykagjtajagkagnagnafjgemjwmwhkhwmwwhmwynwynshmag af sgnsgnwt3j Jun d c exvo1eihqeodbeksflkf corckwoebpbcosvxoencoeocepnco r bo2gsiwxkekxkssh kcvldcke BBC oexoevxkekwoe oexoevxkekwoe owfbowvorqbcoebcoqbcoecoebvo8jxepbxoevxievv0eovdowbxjeaogveck do sklvjajs nlad. jkqevhoeelj. qdkvxepqj Cy evche uequ p oecie b xiexjzlhxboqjskks ohq epxjvdqpivdipdq c pieqbxpee xeocboqeccqepoxbeeopcvcpqdooj qeojbqeihv2d xeocboqeccqepoxbeeopcvcpqdooj qeojbqeihv2d. qdbqekcb1epix1eovuxope. c eqixvpqeoxpoueebcp1ejk kb c wrpibocqepivxpqeqobedobexoevovbeo I she wpribc free ufv3ifbo3f383gii c owrou2ueohp wdpibvpeov jpecvpei 774hejlx oedkjxvi2gd378 r uv ¥¥÷";÷¥"÷£
obebkcslfwm b pen dl fsljdibqdl,pjircboe1nvprjvp
Answer:
x = 9.8f
y = 4.9f
In the case of C and C++, the % operator cannot be used with floating-point values.
We will get an error.
[Error] invalid operands of types 'float' and 'float' to binary 'operator%'.
But in the case of Java and C#, we will get the remainder as an output.
So, 9.8f % 4.9f = 0.0