bybi8rdanmanRed bybi8rdanmanRed
  • 08-02-2017
  • Computers and Technology
contestada

Given the integer variables x, y, and z, write a fragment of code that assigns the smallest of x, y, and z to another integer variable min.

Respuesta :

kaevras
kaevras kaevras
  • 08-02-2017
You should specify what language you're using in these types of questions. Here's an example in C++, which is fairly easy to understand, so you should be able to transfer the concept to another language to problem.

int x = 2, y = 1, z = 3, min;

if (x < y && x < z)
min = x;
else if (y < x && y < z)
min = y;
else if (z < x && z < y)
min = z;
else
std::cout << "There is no minimum";
Answer Link

Otras preguntas

in a group of 20 there are 7 boys what is the ratio of girls to boys?​
How many groups are in the modern periodic table? O 12 O 18 O 22 O 24
que es un cuento politico? necesito ayuda pls
Solve the inequality, write the answer in interval notation.
Input the number of days in a month
Please help me with this it’s really hard to do :/
For school, in art, we have to collect photos of us from years ago. I’m contemplating whether or not I should use this photo. Please let me know what you think
Help me with ex. 9 please
write the first five terms of the geometric sequence with the given 1st term and the common ratio.—hi can someone please answer my question i really need the co
what is f(-1) for the graph shown below? Please help