Ask Question
17 July, 05:09

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. 17 July, 09:05
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers