0 like 0 dislike
57 views
in Computer Science by (1.0m points)
What is nested-if statement?

1 Answer

0 like 0 dislike
by (1.0m points)
A nested "if" statement is the true condition in a series of conditions in computer programming. It is used when multiple responses are possible and the outcome for each response is different.

An example of a nested "if" statement is the following: If the result is a number between three and five, print it in the color blue. If the result is a number less than three, print it in red. If the result is any other number, print it in green. Different computer languages have limits on the number of "if" statements that may be nested. Nested "if" statements are also called "if-then" or "if-else" statements.

Related questions

0 like 0 dislike
0 answers 54 views
0 like 0 dislike
1 answer 42 views
0 like 0 dislike
1 answer 69 views
asked Feb 11, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
0 answers 46 views
0 like 0 dislike
1 answer 49 views
0 like 0 dislike
1 answer 66 views
0 like 0 dislike
0 answers 82 views
0 like 0 dislike
1 answer 75 views
0 like 0 dislike
1 answer 59 views
0 like 0 dislike
1 answer 56 views
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

6.3k users

Free Hit Counters
...