Hello, I need to print 5 results. How i need to do this ? I try it made in loop, but not working
fscanf(STDIN, "%d", $n);
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
// To debug: error_log(var_export($var, true)); (equivalent to var_dump)
$dataArray = [
'3837339789' => '9873333789',
'6834866643' => '8664334668',
'7777777777777' => '7777777777777',
'23124134334' => '43321412334',
'3518587137' => '8753113578',
'58232328523232' => '85332222223358',
];
foreach ( $dataArray as $dataKey => $dataValue) {
$koeficient = $dataValue/$dataKey;
$testResult = $dataKey * $koeficient;
echo($testResult);
echo("\n");
error_log(var_export($testResult, true));
}