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]
3 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]3 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
You are planning to implement dual stack of IPv4 and IPv6 in your network. Currently, your network consists of servers, routers,
AleksandrR [38]

Answer:

Ensuring that Internet Service Providers (ISPs) work with IPv6 .

Explanation:

An Internet Service Provider (ISP), it is the company that supply to other companies or an individuals for accessing the Internet and some other services such as virtual hosting and Web site building. ISP has the telecommunication line and an equipment to access the required point of area for the Internet.

4 0
3 years ago
What is the simplest way to permanently get rid of an unwanted file on the computer
Mrac [35]
Delete it. Also defragmentation may be an option if your computer is running slow.
8 0
4 years ago
Shift all elements by one to the right and move the last element into the first position. For example, 1 4 9 16 25 would become
guajiro [1.7K]

Answer:

i see you but i dobt see it

Explanation:

8 0
3 years ago
Which tool can be used to code basic HTML?<br><br> Text editor<br> JavaScript<br> CSS<br> HTML
luda_lava [24]

Answer:

Java Script

Explanation:

3 0
3 years ago
Read 2 more answers
What process gives a user access to a file system on a mobile device with full permissions, essentially allowing the user to do
Mumz [18]

Answer: jailbreaking

Explanation:

Jailbreaking is the process by which Apple users can remove software restrictions imposed on iOS and Apple products like the iPad, iPhone, iPod, and more. Jailbreaking allows root access to iOS. It lets users install applications, extensions, and other software applications that are not authorized by Apple’s App Store.

6 0
3 years ago
Other questions:
  • A security policy is a
    11·1 answer
  • Once I have entered text into a presentation, how do I modify the font style of the text? Select the text and use options availa
    9·2 answers
  • Last semester, Henri bought his textbooks over the Internet and saved a considerable amount of money. Classes start in a few day
    12·2 answers
  • Select all that apply. To assist in document sharing, you should?
    12·2 answers
  • How can I make a video game?
    8·2 answers
  • David has created a lot of styles and now his Quick Style Gallery contains styles he no longer uses.
    10·1 answer
  • In IDLE, which symbols are used for the prompt? <br>*** <br>&lt;&lt;&lt;<br> &gt;&gt;&gt;<br> ---​
    8·1 answer
  • Access-lists pose a logical problem which often has more than one solution. Can you think of a different set of rules or placeme
    8·1 answer
  • To use a macro, a user must first <br> ____ a macro and then <br> ____the macro.
    8·1 answer
  • What is the fifth-generation wireless broadband technology based on the 802.11ac standard engineered to greatly increase the spe
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!