Computer Applications
If(a < b && a < c)
- a is the greatest number
- a is the smallest number
- b is the greatest number
- none (where a, b and c are three integer numbers)
Java Conditional Stmts
11 Likes
Answer
a is the smallest number
Reason — Assuming that the && operator results in 'true', both the conditions (a < b) and (a < c) should hold true. Hence a is the smallest of the three numbers.
Answered By
5 Likes
Related Questions
If((p>q) && (q>r)) then
- q is the smallest number
- q is the greatest number
- p is the greatest number
- none
if(a<b)
c = a;
else
c = b;
It can be written as:- c = (b<a) ? a:b;
- c = (a!=b) ? a:b;
- c = (a<b) ? b:a;
- none
State whether the following statement is True or False :
if statement is also called as a conditional statement.
State whether the following statement is True or False :
A conditional statement is essentially formed by using relational operators.