1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Yakvenalex [24]
2 years ago
9

Write an if/else statement that assigns 0 to x when y is equal to 10; otherwise it should assign

Computers and Technology
1 answer:
Liono4ka [1.6K]2 years ago
7 0

Answer:

if(y==10)

{

     x=0;   // assigning 0 to x if y equals 10.

}

else

{

   x=1;   // assigning 1 to x otherwise.

}

Explanation:

In the if statement i have used equal operator == which returns true if value to it's right is equal to value to it's left otherwise false.By using this operator checking value of y and if it is 10 assigning 0 to x and if it is false assigning 1 to x.

You might be interested in
true or false manual handling of materials accounts for the primary source of energy in the workplace
Rus_ich [418]
True, hope this helps
6 0
3 years ago
Read 2 more answers
Which is a benefit of traditional SLR cameras over digital cameras? A. They produce negatives to serve as backups. B. They make
VLD [36.1K]

B. They make it easy to take panoramic photographs of the crime scene.

Explanation:

  • SLR is the single-lens reflex analog camera with dated looks. Traditional SLR has more manual controls and no monitor on the rear.  
  • A DSLR or Digital Single Lens Reflex camera is a facelift of the traditional SLRs. They are pricey but have the power of capturing minutest details.  
  • SLRs give more opportunity for creativity. They give an important competition to digital cameras in pixel output too.  
  • However, if the quality is paramount invest in a good SLR.

6 0
3 years ago
Importancia del sistema operativo
love history [14]

Answer:

Un sistema operativo es el software más importante de tu computador, ya que se encarga de gestionar el hardware, el acceso a la memoria, acceso a la CPU y controlar gran parte de las tareas que lleva a cabo tu computador.

7 0
2 years ago
A(n) ________ software installation enables you to decide which features you want to install on the hard drive. Select one: A. f
Softa [21]

Answer:

D.Custom

Explanation:

When you select  Custom installation, all Compulsory subcomponents and products are installed, but the Optional and Recommended  sub-components and components can be installed selectively on a product-by-product basis for the licenses selected at install time.  It also provides the feature to store it in your desirable disk in the hard drive.

7 0
3 years ago
What best compares potrait and landscape orientations
REY [17]
In portrait  the height is taller than its wide and in landscape the height is smaller than wide
so its the wider and taller
5 0
3 years ago
Other questions:
  • Why are many otherwise safety-conscious people victims of Internet crime?
    13·1 answer
  • Which javascript method should you use if you want to specify a message string to appear on your web page as it loads?
    13·1 answer
  • Which of the following statements is false?
    12·1 answer
  • Need help writing a program that reads a string if the option "E" (enter a string) is chosen, and checks if parentheses (), brac
    14·1 answer
  • Below is a 4-bit down-counter. What is the largest number of the counter if the initial state Q3Q2Q1Q0=0011? (D3 and Q3 are MSB,
    14·1 answer
  • Which information is considered free for use?
    9·2 answers
  • Write a program using nested loop to produce the following output:
    6·1 answer
  • Which of the following instruments are used when performing a high-rate discharge test on a storage battery
    7·1 answer
  • What is Mars internal composition
    7·1 answer
  • The text defines ________________ as the obsessive use of computers, or the unauthorized access and use of networked computer sy
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!