ChetanaSforum # how to solve this aptitude?wat is the ans?

## Recommended Posts

Find min value of x: |-5-x| + |2-x|+|6-x|+10-x|; where x is an integer 0 /17 /23 /19

##### Share on other sites

Find min value of x: |-5-x| + |2-x|+|6-x|+10-x|; where x is an integer 0 /17 /23 /19

ans 25

##### Share on other sites

Find min value of x: |-5-x| + |2-x|+|6-x|+10-x|; where x is an integer 0 /17 /23 /19

19

##### Share on other sites

Find min value of x:

|-5-x| + |2-x|+|6-x|+10-x|; where x is an integer

0 /17 /23 /19

GK

---------->

if u put x values to the equation |-5-x| + |2-x|+|6-x|+10-x|

so tha min value of x is 23.

if u have doubt means check the c#.net program

using System;

using System.Data;

protected void Button2_Click(object sender, EventArgs e)

{

string dd = TextBox1.Text;

int val = Convert.ToInt32(dd.ToString());

int get=print(val);

Label1.Text = get.ToString();

}

public static int print(int n)

{

int x=n;

int val=-5-x + 2-x+6-x+10-x;

return val;

}

thank u...

##### Share on other sites

ans is 1713-4xx=-1ans 17

##### Share on other sites

GK

---------->

if u put x values to the equation |-5-x| + |2-x|+|6-x|+10-x|

x=0 then answer is 13 //////this answer is wrong becoz mod[-5]=5 so plz. check

mod[-]=+ve plz check it again

ranju656@sify.com

##### Share on other sites

mod[-]=+ve plz check it againranju656@sify.com

##### Share on other sites

answer is 19coz when you draw it on no. line and take each value of as a person then in order to meet to each other the total distance travelled by the four person is 19.And thus this is your answer

##### Share on other sites

Considering x=1

|-5-(-1)|+|2-(-1)|+|6-(-1)|+|10-(-1)|

4+1+5+9

19 . So the value of x= 19.