Hong-Phuc Bui
2025-10-17 0079221776106e3ca91076938e80d37e38eacc29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Übungblatt 1
/*
*
* */
 
/**
 * helloworld-html.js
 *
 */
 
import {terminal} from "./dfhi.js";
 
const G = 6.67430;
 
window.main = (...argv) => {
    const mass1 = Number(argv[0]);
    const mass2 = Number(argv[1]);
    const r = Number(argv[2]);
    const force = G * mass1 * mass2 / (r*r);
    terminal.printh(force);
};