public class Solution {
public static int min(int a, int b, int c) {
//write your code here
}
public static void main(String[] args) throws Exception {
System.out.println(min(1, 2, 3));
System.out.println(min(-1, -2, -3));
System.out.println(min(3, 5, 3));
System.out.println(min(5, 5, 10));
}
plz fill this code
Under discussion
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Krishna shahi
4 November 2018, 17:52
May this will help you-
public static int min(int a, int b, int c) {
int ans= c<(a<b?a:b)?c:(a<b?a:b);
return ans;
}
0
Aswini
15 November 2018, 05:02
int ans= c<(a<b?a:b)?c:(a<b?a:b);
what is the meaning for this? Please explain.
0
Aswini
15 November 2018, 05:18
i got it.. by google
:)
+2
Roman
22 August 2018, 06:12
Posting the solution in the comments is prohibited.
You have to try it by yourself. And if you need help with some moments, we (other users) will help you.
+1