Jhen7241 Jhen7241
  • 14-09-2019
  • Computers and Technology
contestada

If variable x has value 2 and y has value 1, which values could result from the following Jack expression?

x + 3 * 4 - y

Respuesta :

StaceeLichtenstein StaceeLichtenstein
  • 19-09-2019

Answer:

The result of the given expression is 13.

Explanation:

Here x and y are the two variable which has value 2 and 1 respectively.

x+3*4-y

Here  operator *  is more precedence then that + operator so

=2+(3*4)-1

2+12-1 now + operator  is more precedence then that - operator so

=(2+12)-1

=(14-1)

=13

Following are the program in C language

#include <stdio.h>// header file

int main() // main function

{

   int x=2,y=1; // variable declaration

   printf("%d",x+3*4-1); b// final result

return 0;

}

Output:13

Answer Link

Otras preguntas

What is the simplified form of 2 over x squared minus x minus 1 over x ? (2/x^2-x) - (1/x) answers: x-1/x(x+1) 1-x/x(x+1) 3-x/x(x-1) x+2/x(x-1)
I will give Brainlist!! Just 1 simple question. If you were to set the shutter speed for a long opening, what effects might you notice in your photographs? Why?
What is one way globalization affects economies around the world?
In "Twenty Leagues Under The Sea", what was the "Black River"?
With the kinetic energy of a sample increases the____ will also increase
A dress that normally costs $43.00 is on sale for 5% off. What is the sale price of the dress?
Need Help!!!!!!!!!!!!!!!!!!
Helpppppppp!!!!:((((((
the evolution of lungs and gills, which developed to serve a similar gas-exchange purpose in distantly related organisms, is an example of what type of evolutio
Factor the expression. 9b2 – 25