The sum of three numbers is 20. The second number is 4
times the first number , and the sum of the first and third
is8. Find the numbers.

Answers were Sorted based on User's Feedback



The sum of three numbers is 20. The second number is 4 times the first number , and the sum of the..

Answer / neeraj venu

Three numbers are x , y , z ;
So ,
x + y + z = 20;
4x = y;
x+ z= 8;
therefore ,
8+y=20;

y = 12, x= 3 ,z= 5;

Is This Answer Correct ?    17 Yes 3 No

The sum of three numbers is 20. The second number is 4 times the first number , and the sum of the..

Answer / vinod

x,y,z
1: x+y+z=20
2: y=4x
3: x+z=8

so:
x+4x+8-x=20
4x=12 so x=3
y=4*3 so y=12
z=8-x so z=5

Is This Answer Correct ?    8 Yes 3 No

The sum of three numbers is 20. The second number is 4 times the first number , and the sum of the..

Answer / dheeraj shandilya

Let the three numbers be x, y, z.
Then A/Q second number is four times the first number .
It means y= 4x
so
x+4x+z =20-------(1)
also x+y =8----------(2)
solving these two equation we will get x=3, y= 4x= 12 and
z= 5.
So the three number will be 3, 12, 5

Is This Answer Correct ?    1 Yes 0 No

The sum of three numbers is 20. The second number is 4 times the first number , and the sum of the..

Answer / dheeraj shandilya

In Answer posted above there is a typing mistake. In
equation (2) y should be replaced with z so the equation
(2) became
x+z = 8

Thanks

Is This Answer Correct ?    0 Yes 0 No

The sum of three numbers is 20. The second number is 4 times the first number , and the sum of the..

Answer / j

Five more than the number is less than or equal to twice the number5x+less2

Is This Answer Correct ?    0 Yes 0 No

The sum of three numbers is 20. The second number is 4 times the first number , and the sum of the..

Answer / j

The sum of the number and 50 is less thanthree times the number

Is This Answer Correct ?    0 Yes 0 No

The sum of three numbers is 20. The second number is 4 times the first number , and the sum of the..

Answer / mariaalex007

The nos are 2,8,5......
solution...
x+4y+z=20;
but.. x+z=8;
so..4y+8=20;
so..y+2=10;
so..
y=8;

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More Python Code Interview Questions

What is the output, suppose list1 is [1, 3, 2], what is list1 * 2 ?

0 Answers  


Write a function that takes as input a binary tree, and prints out each level of the tree on a newline. For example: a / b c / / d e f will output: a b c d e f

0 Answers  


Write a python program to check if a string is a palindrome or not?

0 Answers  


Can you write a program to find the average of numbers in a list in python?

0 Answers  


how are functions defined in python ?

1 Answers  






Write a python program to count the number of digits in a number?

0 Answers  


Given a circular list of integers (when you reach the end of the list you come back to the beginning), what is the most efficient algorithm to find the smallest integer in the list? For example: circular_list = [22, 52, 66, 82, 5, 8, 12, 19].

0 Answers  


Write a function to efficiently convert a floating point number to a rational number. For example, given 0.125 return "1/8"

0 Answers  


What is the output when we execute list(“hello”)?

0 Answers  


Write a python program to swap the first and last value of a list?

0 Answers  


Write a function that takes an array of integers and efficiently calculates and returns the Least Common Multiply in python.

0 Answers  


Write a function, tokenize_string(input_string, delimiter_list) that returns a list of strings that are separated by the delimiters. For example: tokenize_string("How now, Mrs. Brown Cow") returns ['How', 'now', 'Mrs', 'Brown', 'Cow']

1 Answers   Traviate,


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)