C
Programming and Technical
Programming
Program
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
Options
1) rem = 3.14 % 2.1;
2) rem = modf(3.14, 2.1);
3) rem = fmod(3.14, 2.1);
4) Remainder cannot be obtain in floating point division.
Read Solution (Total 4)
-
- ans:30
x be d total no. of gems
x/3 +x/5 +x/6 +x/10 +6 =x
x=30 - 11 years agoHelpfull: Yes(1) No(0)
- let x is the no of gems.
according to given condition
x/3+x/5+x/6+x/10+6=x
(20x+12x+10x+6x+360)/60=x
48x+360=60x
12x=360
x=30
One-third they got from the ground,30/3=10
One-fifth on the bed they found,30/5=6
One-sixth in her hand she got,30/6=5
One-tenth with some skill he caught,30/10=3
The rest - six gems - were on the thread,=6
10+6+5+3+6=30
- 10 years agoHelpfull: Yes(0) No(0)
- option c ,,its a function in c
- 8 years agoHelpfull: Yes(0) No(0)
- option 3 is correct
- 6 years agoHelpfull: Yes(0) No(0)
C Other Question