Ask Question

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.

+4
Answers (1)
  1. 18 November, 05:17
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers