Write an if-else expression to check which number is smaller
(Assume J=15, Q=35 )
Answers
Answered by
0
Answer:
Explanation:
int j = 15;
int q=35;
if(j<q){
System.out.print(j+"is smaller than "+q);
}
else if(j>q){
System.out.print(q+"is smaller than "+j);
}
else{
System.out.print(q+" and "+j + " is equal");
}
Similar questions