for your program to be co
Jemy has an antique square piece. She would like to paint
in two different colors say Red and Blue. The ratio of red
is
20. '
Oblue is 2:1. But the problem is, Jemy has limited red
remained. She wanted to check whether the red
paint is sufficient to complete antique piece painting.
Note: To paint 1 sq. ft = 0.5L liquid colored paint required.
Write a program to help her in finding how much
liter/liters of red paint (liquid color) required?
1329231160 89
-
of square
Example 15
Input:
4
Integer value
1339 1160 89
from total liters (in double/float)
→ result - Red color paint contribution-0231160 89
0923860 89
Explanation:
4 ft is the side of square. If we calculate area of square, it
will be 16 sq.ft. To paint 1 sq. ft, 0.5L liquid colored paint
required. Hence for 16 sq. ft we need 8L of liquid color
paint. More Info: 16 sq. ft x 0.5L = 8L. 2:1 will be ratio of
red color to blue color respectively. Red color contribution
will be 2/3 of 8 will rounding off to 2 decimal points will
5.33. Hence output will print 5.33.
3901160_89
Answers
Answered by
0
Answer:
Can you write the question correctly I can't understand the problem which you gave.
Answered by
2
Answer:
write the question correctly
Explanation:
i don't understand
Similar questions