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
Licemer1 [7]
3 years ago
7

If an if- else statement is true, it will include which kinds of results?

Computers and Technology
1 answer:
Salsk061 [2.6K]3 years ago
5 0

In an if...else statement, if the code in the parenthesis of the if statement is true, the code inside its brackets is executed. But if the statement inside the parenthesis is false, all the code within the else statement's brackets is executed instead.

Of course, the example above isn't very useful in this case because true always evaluates to true. Here's another that's a bit more practical:

#include <stdio.h>

int main(void) {

int n = 2;

if(n == 3) { // comparing n with 3 printf("Statement is True!\n");

}

else { // if the first condition is not true, come to this block of code

printf("Statement is False!\n"); } return 0;

}

Output:

Statement is False!

You might be interested in
Consider the practice of outsourcing programmers, a common practice in many U.S. businesses. Think about how this practice is us
GuDViN [60]

The practice of outsourcing programmers is known to be the act of  sharing or delegating as well as handing over control of programming and its associated tasks to any form of  external service provider that is said to be very good in that field and has the power and capabilities to handle the technical and operational areas of a programming project.

<h3>What is outsourcing and why is it always practiced?</h3>

Outsourcing is known to  be a kind of a business practice that entails the act of hiring a party that is known to be outside a company to carry out services or make goods that are said to be traditionally carried out in-house.

Note that The practice of outsourcing programmers is known to be the act of  sharing or delegating as well as handing over control of programming and its associated tasks to any form of  external service provider that is said to be very good in that field and has the power and capabilities to handle the technical and operational areas of a programming project.

Learn more about outsourcing  from

brainly.com/question/12101789

#SPJ1

5 0
2 years ago
Consider two medical tests, A and B for a virus. Test A is 95% effective at recognizing the virus when it is present but has a 1
finlep [7]

Answer:

Test B.

Explanation:

Test A - 95% effective with 10% false positive rate.

Test B -90% effective with 5% false positive rate.

Test A and B are independent methods.

One of the tests is carried out on a person and turns out to be positive.

To calculate the effectiveness of the test,

  Test A = Effectiveness in  percentage divided  by the false positive rate.

                   95/10 = 9.5

 

  Test B  = Effectiveness in  percentage divided  by the false positive rate.

                   90/5 = 18.

   

Test B has a higher effective rate than Test A.

Therefore Test B is more indicative of a positive result than Test A.

8 0
4 years ago
place the steps in order for placing a section break Click the Layout tab Change the formatting style Choose a break option Posi
Valentin [98]

Answer:

Click the Layout tab

Choose a break option

Position the cursor Select Breaks

Change the formatting style

Explanation:

6 0
3 years ago
Read 2 more answers
There are___standard colors for text in a theme.
Stella [2.4K]
There are two standard colors for a text in a them
6 0
4 years ago
which of the following indicates that the loop should stop when the value in the quantity variable is less than the number 50​
yan [13]

Answer:

while (quantity >= 50)

Explanation:

Required

Stop when quantity is less than 50

To do this, we make use of a while statement and the syntax is:

while (condition){ }

If the loop should stop when quantity is less than 50; then it means the loop would continue when quantity is greater or equal to 50

So, we have:

while (quantity >= 50)

6 0
3 years ago
Other questions:
  • Technological progress has reduced the cost of manufacturing mp3 players. what happens if demand is unchanged?
    9·1 answer
  • What important practice can help prevent hardware trouble?
    6·1 answer
  • Se citește un număr natural n cu cel mult 16 cifre. Fie q numărul de cifre ale numărului n. Prin eliminarea unei singure cifre d
    5·1 answer
  • Its an HTML5 anyone kwons
    15·1 answer
  • When both inputs of a J-K edge-triggered FF are high and the clock cycles, the output will ________.
    11·1 answer
  • Which type of network cable is commonly used to connect office computers to the local network
    13·1 answer
  • Whats the answer :)?<br>i will give brainslist​
    11·1 answer
  • Explain what the problems with the implementation of the function are, and show a way to fix them.// return true if two C string
    7·1 answer
  • 5
    8·2 answers
  • Describe four features of a well designed input screen
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!