I am using the following code:
$hamburger = 4.95;
$milkshake = 1.95;
$cola = .85;
$food = 2 * $hamburger + $milkshake + $cola;
$tax = $food * .075;
$tip = $food * .16;
$total = $food + $tax + $tip;
printf ("%1d %9s at \$%.2f each: \$%.2f\n", 2, 'Hamburger', $hamburger, 2 * $hamburger);
printf ("%1d %9s at \$%.2f each: \$%.2f\n", 1, 'Milkshake', $milkshake, $milkshake);
printf ("%1d %9s at \$%.2f each: \$%.2f\n", 1, 'Cola', $cola, $cola);
but when the code is output the \n command is not recognised and the information all comes out on one line
Any ideas?