Ask Question
18 August, 05:28

Write a statement that assigns finalResult with firstSample plus secondSample, divided by 3. Ex: If firstSample is 18 and secondSample is 12, finalResult is 10.

+3
Answers (1)
  1. 18 August, 07:50
    0
    finalResult = (firstSample+secondSample) / 3; / /coded inc++

    Explanation:

    The above code is executed in c++. As it involves basic arithmetic, so, if whole program has to be written, then they can be declared of type int, float or double as required and then the above statement must be used in which firstSample and secondSample has been added first and the result is divided by 3 to obtain the desired output.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a statement that assigns finalResult with firstSample plus secondSample, divided by 3. Ex: If firstSample is 18 and secondSample is ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers