+ 2

I found a math quiz. Can you try this?

A, B, C, D and E are four natural number (the integers are not less than zero). A divided by B is 6 and remains 5, A devided by C is 7 and remains 6, A devided by D is 8 and remains 7, A devided by E is 9 and remains 8, What are A, B, C, D and E? Please choose the programing language and post the code.

17th Jul 2017, 4:33 PM
Dustin Chen
Dustin Chen - avatar
7 Respuestas
+ 1
My Code: https://code.sololearn.com/cJobA53kxuBb/?ref=app It checks through values for E (1, 2, 3,...) and then calculates D, an checks if it's an integer... and so on I think it's the shortest way to code this challenge
29th Jul 2017, 1:47 PM
You
+ 18
503, 83, 71, 62, 55. Should I post the code?
17th Jul 2017, 4:40 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 1
I like this math
19th Jul 2017, 9:49 PM
Adam
0
To Krishna: I think it's better to post your code and add the comments after some important code. The code should be better base on some clever algorithms not on the math method. So we can practice the code not the math.
17th Jul 2017, 11:42 PM
Dustin Chen
Dustin Chen - avatar
0
your so intelligent
19th Jul 2017, 9:42 PM
Adam
0
how many month did it took you to learn codw
19th Jul 2017, 9:44 PM
Adam
0
To adam: It took me some spare time when I get off work since last year.
20th Jul 2017, 12:33 AM
Dustin Chen
Dustin Chen - avatar