Skill Subsist Impulse Ltd Interview Question
Data ScientistsCountry: India
Interview Type: In-Person
import java.lang.Math;
public class BiggestImpl {
public static void main(String[] args) {
int a = 3;
int b = 4;
int k = Math.abs(a - b);
int j = a +b;
double k1=(double)(k);
double j1= (double) (j);
double c=Math.ceil(k1/2) + Math.floor(j1/2);
int c1= (int) (c);
System.out.println("Biggest among two values = " + c1);
}
}
Int a,b,c;
- M.Manoj kumar August 30, 2016c=a;
a=b;
b=c;