Month February 2023

[Solved] Absolute beginner looking for solution

This is very simple, and is pretty much related to your understanding of the BMI’s formula. The code that suits your requirements would be the following: maxweight = (height**2/10000)*24.9 dif = round(abs(maxweight-weight),2) print(name+”, you have”,dif,”kilograms to go until you reach…

[Solved] Is it possible to do this in Java? [closed]

Here is the closest code: public class Stackoverflow_03262019 { public static void main(String[] args) { int[] arr=new int[5]; Arrays.fill(arr,0); Arrays.stream(arr).forEach(val-> System.out.println(val)); } } “` You can add any value instead of 0; 2 solved Is it possible to do this…

[Solved] C++ programs on Mac OS

A default macOS installation will include something that pretends to be gcc but that’s just a legacy concern so that portable programs will properly detect a compiler when you do a source install with the usual ./configure && make &&…

[Solved] Turning a content into a $variable in php

You can use \DOMDocument->loadHTML(); Ex: <?php $doc = new \DomDocument(); $doc->loadHTML(‘<div class=”whatever”> Title </div>’); View examples here: This is assuming that your source is available to php. It would probably be more pragmatic to extract the value with javascript…