Computer Science, asked by abhikruthi, 8 months ago

Mr. Jack is laying down a row of bricks whose length is target inches. Mr. Jack has 2 types of bricks: small bricks (1 inch each) and big bricks (5 inch each). He wants to know if the number of small bricks and big bricks he has is enough. If a brick is being used, it has to be used fully and not in parts. Write a method Met that takes in 3 integers: first integer has the value of target second integer has number of big bricks third integer has number of small bricks The method should print Possible if the number of bricks are enough. Otherwise print Impossible.

Answers

Answered by malekarujwal
0

Answer:

1 big brick = 5 small bricks

Similar questions