Computer Science, asked by suyarajput, 6 months ago

Write down the syntax for the following functions in Java programming:

i)To find smaller between two numbers.​

Answers

Answered by riyaamen303
5

Answer:

Syntax is :

              if(2 < 3) {

                     System.out.println(2) ;

                }

               else {

                      System.out.println(3);

                }

                                                         or

                System.out.println(Math.min(2,3)) ;

Hope this helps you.Please add as Brainliest if it is correct.

Similar questions