ahmed3598
ahmed3598 ahmed3598
  • 17-03-2020
  • Computers and Technology
contestada

Explain if statement as decision making
with a block diagram and c++ code

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 23-03-2020

Answer:

If statement requires a condition. Like if(w==0), and so on. And it has else as an alternative option in case condition fails as well as it can run the if-else if ladder.

like

if( condition1)

else if ( condition 2)

else if (condition 3)

else if (condition 4)

else

..............

and likewise.

And we here have a c++ block:

if( w<=0)

{

   cout<<"you are one";

}

else

{

  cout<<"You are not one";

}

Explanation:

Please check the answer section.

Answer Link

Otras preguntas

_____ involve a sudden loss of memory or change in identity.
John bowled 136 on his first game and 148 on his second game. jerry had a total score of 483 for three games. what would john have to bowl on his third game to
Who eventually replaced chinese workers, especially in agriculture, after the chinese exclusion act?
Help and explain please!! Find the distance between the points -9.3 and 10.6
Schools and _________ were particularly important in helping freedmen during and after reconstruction.
analyse the nature of sound symbolism in headlines
On both the spring and fall equinoxes, the sun's rays are vertically overhead at the _______
how do you tell if a compound is polar or non polar
what is -4(x-6)+5x=29-2
What is 3 different complex fractions that simplify to 1/4