Problem 1663. Pizza value using expression with parentheses

Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per unit area) given the diameter and cost. Use parentheses to make the order of operations clear; do not rely on operator precedence. Area of a circle is pi * radius * radius.

Solution Stats

50.93% Correct | 49.07% Incorrect
Last solution submitted on Dec 09, 2016

Problem Comments

Solution Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more