Computer Science, asked by maryamkhan8737, 1 month ago

right write a java statement to check whether 25 is lesser than 40​

Answers

Answered by anjaliqueen3108
2

Answer:

public class abc

{

public static void main[]

{

int a= 25;

int b= 40;

if ( a<b)

System.out.println(" yes 25 is lesser than 40);

else

System.out.println(" no 25 is greater than 40);

}

}

Answered by Oreki
1

\text{\bf\large Java Statement}

  \texttt{if (25 &lt; 40) \{ \}} \textsf{\hspace{6.8em} or, }\\\texttt{boolean isMore = 25 &lt; 40;} \textsf{\hspace{2em} or, }\\\texttt{25 &lt; 40};

Similar questions