logo

Crowdly

Browser

Add to Chrome

Що буде виведено у результаті виконання програми? public class If1 {     s...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Що буде виведено у результаті виконання програми?

public class If1

{

    static boolean b;

    public static void main(String [] args)

    {

        short hand = 42;

        if ( hand < 50 && !b ) /* Line 7 */

            hand++;

        if ( hand > 50 );     /* Line 9 */

        else if ( hand > 40 )

        {

            hand += 7;

            hand++;   

        }

        else

            --hand;

        System.out.println(hand);

    }

}

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome