A
A
Andrey Lyubimenko2018-10-21 22:03:53
C++ / C#
Andrey Lyubimenko, 2018-10-21 22:03:53

The problem of finding the average number, how to solve?

How to write with a full if statement?
Three numbers are given. Find the average of them (the number located between the largest and smallest)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sumor, 2018-10-21
@andrewlybimenko

Your problem can only have three answers: a, b, or c.
Accordingly, write only one condition for answer a, one condition for answer b, and one condition for answer c. You don't need anything else.
If you want to save money - write one condition for a, the second for b, and everything that goes further will be option c.

G
GavriKos, 2018-10-21
@GavriKos

Well, where is your code, where did you try and fail?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question