Log 2012

$sum = 0;

while (true) {
$input = readline(“Enter a value for סכום (or ‘q’ to quit): “);

if ($input === ‘q’) {
break;
}

if (is_numeric($input)) {
$sum += $input;
} else {
return “Invalid input. Please enter a numeric value.n”;
}
}

return “The sum is: ” . $sum . “n”;

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare