+ 1

i heat this quetion : if diameter of moon is 1/4th of diameter of earth desing an gorithm that computes the diameter of moon assume diameter of earth as 12800km Hint : diameter of moon = 1/4* diameter of earth? pleas help me ☹️😭

8th Mar 2017, 2:30 PM
Khulud Al-slman
Khulud Al-slman - avatar
6 Respostas
+ 9
Isn't this basic math? You just divide the diameter of the earth by 4. 12800 / 4 = 3200 km or 12800 * 0.25 = 3200 km
8th Mar 2017, 2:37 PM
The Coding Sloth
The Coding Sloth - avatar
+ 8
What do you mean? Just write what you mean in your language
8th Mar 2017, 2:43 PM
The Coding Sloth
The Coding Sloth - avatar
+ 7
int earthRadius=128000; int moonRadius=earthRadius/4; System.out.println(moonRadius); Thats the easiest way to explain it.
8th Mar 2017, 3:11 PM
Meharban Singh
Meharban Singh - avatar
+ 1
anyway thenk you
8th Mar 2017, 3:05 PM
Khulud Al-slman
Khulud Al-slman - avatar
0
No pc desing an algorithm😩
8th Mar 2017, 2:42 PM
Khulud Al-slman
Khulud Al-slman - avatar
0
beside code
8th Mar 2017, 2:51 PM
Khulud Al-slman
Khulud Al-slman - avatar