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
Naya [18.7K]
3 years ago
8

The common programming structure that implements "conditional statements" is called an____ statement.

Computers and Technology
1 answer:
Sloan [31]3 years ago
5 0

Answer:

An if statement

Explanation:

Conditional statements are important aspects of programming where decisions are made depending on the outcome of one or more conditions.

Generally, the conditional statements are called selection control structure but because of the general syntax which it operates on, they are regarded as if statement.

There's no limit to the number of if statement a program can have.

The syntax of an if statement goes thus:

if(condition 1) {

statements

}

else if(condition 2)

{

statements

}

.....

.....

....

else

{

statement

}

An example is a c++ program segment that compares and prints the larger number between two variables

if(x > y)

{

cout<<x<<" is greater than "<<y;

}

else if (y>x)

{

cout<<y<<" is greater than "<<x;

}

else

{

cout<<"Both numbers are equal";

}

You might be interested in
A and B have same output or not? A B x=0 x=0 do do x&lt;3 x=x+1 x=x+1 print x print x while x&lt;3 while
katen-ka-za [31]

Answer:

A and B have different output:

A output will be 1

B output will be 123

Explanation:

A

X = 0

do x < 3

x = x+1

print x

while

B

X = 0

do x = x+ 1

print x

while x < 3

For statement A the condition statement which suppose to be after "while" is not set therefore the value of x will be printed.

For statement B the condition statement is set "x < 3" in front of "while" thereby result in iteration until the condition is false.

Statement A output will be 1

Statement B output will be 123

6 0
3 years ago
What lets you do many things, like write book reports and stories?
Shalnov [3]

Answer:

4. application programs

Explanation:

5 0
3 years ago
For java
Sedbober [7]

Answer:

public class array{

    public static void main(String []args){

       int[] array = {2,4,7,1,9};

       int num_vals = array.length;

       for(int i=0;i<num_vals;i++){

           

           System.out.println(array[i] + " ");

       }

       for(int i=num_vals-1;i>=0;i--){

           

           System.out.println(array[i] + " ");

       }

    }

}

Explanation:

First create the class in the java programming.

Then create the main function and declare the array with values.

Store the size of array in num_vals variable by using the function array.length.

create a for loop to iterate the each element in the array and then print on the screen with spaces and newline.

it traverse the loop from first to last.

Then, again create the for loop to iterate the each element in the array and then print on the screen with spaces and newline but the traversing start from last to first.

8 0
2 years ago
Curtis has been testing a new software package for the past two months. However, he decides not to switch and goes back to using
hodyreva [135]
Retro-active interference
8 0
3 years ago
Kevin is working in the Tasks folder of his Outlook account. Part of his computer screen is shown below.
klasskru [66]

Answer:

D

Explanation:

7 0
3 years ago
Other questions:
  • How do type declaration statements for simple variables affect the readability of a language, considering that some languages do
    10·1 answer
  • What 2 major agricultural inventions did jethro tull create?
    10·2 answers
  • You are part of a team that is setting up a movie streaming service. The company is planning on initially making available 500 m
    9·1 answer
  • Which of the following information would best be displayed throughout the use of a time line
    11·1 answer
  • What Word features allow you to copy multiple paragraph formatting syles
    5·1 answer
  • Does anyone know where online I can buy the MacBook Air 2017 at I can’t find any I’ll give brainlist and points
    5·1 answer
  • What can you find the under the privacy policy section of a shopping website?
    12·1 answer
  • Gimme Shelter Roofers maintains a file of past customers, including a customer number, name, address, date of job, and price of
    8·1 answer
  • A(n) ________ cloud does not free an organization from the issues associated with managing the cloud infrastructure, but it does
    7·1 answer
  • Bob The Penguin is a real you-tuber, and he plays Mine-craft. Who is his owner?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!