We want to round off x, a Float to an Int value. The correct way to do so would be5
14638 5b5cc7dde4d2b419777515e9
Q: We want to round off x, a Float to an Int value. The correct way to do so would be
- 1Y = ( int ) ( x + 0.5 ) ;true
- 2Y = int ( x + 0.5) ;false
- 3Y = ( int ) x + 0.5;false
- 4Y = ( int ) ( ( int ) x + 0.5 )false
- Show Answer
- Workspace
- Discuss