Kavya TKnowledge Contributor
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
Third statement ‘rem = fmod(3.14,2.1);’ should be used to obtain remainder. Since fmod() works the same as the modulo function in every language. It returns the remainder by dividing the number.18 Apr 2019