What will the value of the result variable be after the code segment below has been run.
(round to 4 decimal places)
float result ;
int number3 = 253, number6 = 26;
float number11 = 3;
result = ( number3 - number6 ) / number11 ;
#include <iostream>
using namespace std;
int main()
{
float result;
int number3 = 253, number6 = 26;
float number11 = 3;
result = (number3 - number6) / number11;
cout << "Result: " << result << '\n';
return 0;
}
// Output:
Result: 75.6667
Comments
Leave a comment