Computer Science, asked by ffeather246, 4 months ago

0. What will be the output produced by the following method calls ?
(a) ifElse Test(10,3);
(b) ifElse Test(6, 6);
(c) ifElse Test(3, 4);
(d) ifElse Test(4, 20);




can u please tell me the answers only no spamming!! i couldn't find it in my computerbook

CH-CONDITIONAL CONSTRUCTS IN JAVA ​

Answers

Answered by ujwal161217
1

Answer:

The if(...) statement evaluates a condition in parentheses and, if the result is true, executes a block of code.

For example:

let year = prompt('In which year was ECMAScript-2015 specification published?', '');

if (year == 2015) alert( 'You are right!' );

In the example above, the condition is a simple equality check (year == 2015), but it can be much more complex.

If we want to execute more than one statement, we have to wrap our code block inside curly braces:

if (year == 2015) {

alert( "That's correct!" );

alert( "You're so smart!" );

}

We recommend wrapping your code block with curly braces {} every time you use an if statement, even if there is only one statement to execute. Doing so improves readability.

Similar questions