Math, asked by anjanipradhaslee, 1 year ago

On christmas day, when you woke up, you saw that two big trucks with full of chocolates had arrived. your mother told you that there are total 111304954 chocolates and your father told that one truck has 8320118 less chocolates than other. write a program to calculate the number of chocolates in each truck. print the bigger number first, then a space and then the smaller number.

Answers

Answered by RajatP007
1
Given:
2 trucks

Total number of chocolates: 111,304,954
Chocolates in Truck 1:  x
Chocolates in Truck 2: x - 8,320,118

x + x - 8,320,118 = 111,304,954
2x = 111,304,954 + 8,320,118
2x = 119,625,072
x = 119,625,072/2
x = 59,812,536

Truck 1 = 59,812,536
Truck 2 = 59,812,536 - 8,320,118 = 51,492,418
Similar questions