Computer Science, asked by leishapmenezes, 6 months ago

Lesson: Decision and control structures in Java
(Class 8)

Write the output for the following codes:
1. if (5>3)
System.out.println ("5 is greater");
else if (3>5)
System.out.println ("3 is greater");
else
System.out.println ("both are equal");

2. switch (ch)
{
case'a':
System.out.println ("Platform Independent");
break;
case'b':
System.out.println ("Object Oriented");
break;
case'c':
System.out.println ("Robust and Secure");
break;
default:
System.out.println ("wrong input");
}
i) if ch = 'b'
ii) if ch = 'a'


No spam
only if you know it, give the answers

Answers

Answered by dwyteesh
1

Answer:

Tip Try using words that might appear on the page that you’re looking for. For example, 'cake recipes' instead of 'how to make a cake'.

Need help? Take a look at other tips for searching on Google.

Answered by Anonymous
57

Answer:

A piece of advice for all my friends who are reading this: Life brings us as many joyful moments as it does downfalls, and ...

Top answer · 2 votes

Explanation:yup ur right................ More

0 votes

Answer:ya you are rightExplanation:i need a cute gf More

Similar questions