Given a circular pizza with radius *z* and thickness *a*, return the pizza's volume. [ *z* is first input argument.]

Non-scored bonus question: Why is the function interesting?

Show
238 older comments

Jean-Yves Tinevez
on 1 Feb 2012

"Non-scored bonus question: Why is the function interesting?"
- Because the question is in the answer, as long as you do not go for the shortest one.

Steffen
on 13 Feb 2012

You can calculate the most value for your money!

Kristin
on 18 May 2012

This made me laugh more than I care to admit...

Matthew M.
on 15 Aug 2012

Awesome. FWIW, I call foul on the solutions that use Neural Network toolbox - isn't Cody supposed to not use toolboxes?

Vishal Rane
on 15 Oct 2012

Why is the function interesting ?
pi_z_z_a ... that's why ... :D

Rahul Kalampattel
on 17 Feb 2013

Lol, very nicely done :)

Z
on 11 Apr 2013

Definitely one of my favorites ;)

MKN
on 20 Jun 2013

PIZZA!!

HH
on 13 Jul 2013

Kawabanga

M
on 15 Jul 2013

You genious :)

Nicolae Preda
on 12 Aug 2013

Very funny problem with a tasty solution!

Ted
on 13 Sep 2013

made me smile

Rafael Costa
on 12 Nov 2013

ha ha ha, soooo funny

Richard Backman
on 19 Nov 2013

Classic!

Essi
on 5 Mar 2014

:)

Jasmine
on 17 Jul 2014

Nicely apt answer :)

Sathishkumar sha
on 19 Aug 2014

:)

Martin Le François
on 14 Nov 2014

Nice one! I need to go buy the shirt now.

Michael Weidman
on 3 Apr 2015

bit tricky

aMusings
on 5 Nov 2015

Well served!

Kelly Pirron
on 22 Nov 2015

Lol that's hilarious... the volume is two pies

gsab
on 1 Sep 2016

pi*z*z*a

Ana Coelho
on 1 Sep 2016

Because y = pi*z*z*a

Federico Del Gallo
on 1 Sep 2016

y = pi*z*z*a

Hesam Khazraj
on 1 Sep 2016

pi*z*z*a

Sebastian Chan
on 1 Sep 2016

y= pi*z*z*a

Bram Gezels
on 1 Sep 2016

y = pi*z*z*a

Hesam Khazraj
on 1 Sep 2016

y = pi*z*z*a

Ana Coelho
on 1 Sep 2016

y=pi*z*z*a

Min Xue
on 1 Sep 2016

y = pi*z*z*a

kaushik narshana
on 1 Sep 2016

pi*z*z*a

Ramtin Jafari
on 1 Sep 2016

pi*z*z*a!
Nice question! :)

Siem Janssen
on 1 Sep 2016

y=pi*z*z*a

berk coskuner
on 1 Sep 2016

y=pi*z*z*a (:

berk coskuner
on 1 Sep 2016

pi*z*z*a

Joie Wu
on 1 Sep 2016

y = pi*z*z*a

Hossam Mossa
on 1 Sep 2016

V = pi*z*z*a

Anton Azorin
on 1 Sep 2016

v=pi*z^2*a

Nicha
on 1 Sep 2016

ans = pi*z*z*a

Xueting Wang
on 1 Sep 2016

V = pi*z*z*a

berk coskuner
on 1 Sep 2016

y = pi*z*z*a

berk coskuner
on 1 Sep 2016

because the question does not ask for a formula

Simon Strobl
on 1 Sep 2016

A = pi*z*z*a

Emil Eklund
on 1 Sep 2016

pi*z*z*a

Angelo Gelmini
on 1 Sep 2016

the volume is equal to: pi*z*z*a

Angelo Gelmini
on 1 Sep 2016

ans= pi*z*z*a

sezsy yusuf
on 1 Sep 2016

pizza = pi*z*z*a

Juan de Dios Flores Mendez
on 1 Sep 2016

ans= pi*z*z*a

William Grefe
on 1 Sep 2016

ans= pi*z*z*a

William Grefe
on 1 Sep 2016

pi*z^2*a

Vryan Palma
on 1 Sep 2016

ans= pi*z*z*a

Deeksha Lal
on 1 Sep 2016

ans= pi*z*z*a

Roschi
on 1 Sep 2016

pi*z*z*a

Nursefa Zengin
on 1 Sep 2016

pi*z*z*a

Aidos Sarsembayev
on 1 Sep 2016

I didn't get what should I insert there to solve it. Could anybody send me the guidelines to dos_lp | at | mail dot ru
Thanks you!

Mattia
on 1 Sep 2016

volume = pi .* z .* z .* a;

Mattia
on 1 Sep 2016

pi*z*z*a

Thorsten Foltz
on 1 Sep 2016

volume = pi .* z .* z .* a

Abedalsalam Bani-Ahmed
on 1 Sep 2016

volume = pi .* z .* z .* a;

Alex
on 1 Sep 2016

why is my solution wrong?
function y = pizza(z,a)
y = pi*z*z*a
end

Gaurav Salvi
on 1 Sep 2016

y = pi*z*z*a

Max Lupton
on 1 Sep 2016

Usually I get the following response:
"No public property version exists for class cody.verifyCode."
but about the tenth time it finally worked.
Not sure what the issue is but it usually bombs on both MS Edge and Chrome browsers.

Rodrigo Andrés Franco Luna
on 1 Sep 2016

ti's ok... y = pi*z*z*a; %

Andrea Zaccaria
on 1 Sep 2016

pi*z*z*a

Logan Beaver
on 1 Sep 2016

v = pi*z*z*a

Mishek Musa
on 1 Sep 2016

pi*z*z*a

Ahmed Haroun
on 1 Sep 2016

pi*z*z*a

YLLW
on 1 Sep 2016

pi*z*z*a

Hua Jiang
on 1 Sep 2016

pi*zz*a

Lewis
on 1 Sep 2016

pi*z*z*a

Antonio Bozzo
on 1 Sep 2016

ans=pi*z*z*a

Srinivas Chittaboina
on 1 Sep 2016

pi*z*z*a

Rohan Patil
on 1 Sep 2016

ans=pi*z*z*a

Alex Larman
on 1 Sep 2016

ans=pi*z*z*a

Nikunj Senjaliya
on 1 Sep 2016

Volume= pi*z*z*a

Armelle Le Guelte
on 1 Sep 2016

ans=pi*z*z*a

Angélica Parra
on 1 Sep 2016

ans=pi*z*z*a

David Weinberger
on 1 Sep 2016

Volume= pi*z*z*a :)

Miguel Talavera
on 1 Sep 2016

ans= Pi*z*z*a

Sarthak Dubey
on 1 Sep 2016

A=Pi*z*z*a

Durgesh Rai
on 1 Sep 2016

How about z*a*a*pi?

Vivek Nagal
on 1 Sep 2016

Volume = Pi*z*z*a

Andrew Ydenberg
on 1 Sep 2016

Volume = Pi*z*z*a

Angela Albi
on 1 Sep 2016

pi*z*z*a!

William Grefe
on 1 Sep 2016

syms a, z
volume=pi*z^2*a

Eric Parish
on 1 Sep 2016

pi*z*z*a

Benjamin Norris
on 1 Sep 2016

V_pizza = Pi*z^2*a;

Mohammad Mostafavi
on 2 Sep 2016

ans=pi*z*z*a
For Pizzas give one = get one

Felipe de Jesus Escalera
on 2 Sep 2016

ans=
pi*z^2*a

zhou min
on 2 Sep 2016

pizza

ZHEN YU CHAN
on 2 Sep 2016

Pizza

Ara Cate
on 2 Sep 2016

pi*(z*z)*a
nom nom :)

Max Nelson
on 2 Sep 2016

pizza

Liu WeiFeng
on 2 Sep 2016

Pizza = pi*z*z*a
-_-

Chandrama Sarker
on 2 Sep 2016

Volume = pi * (z*z)*a

Santi
on 2 Sep 2016

F(z) = pi*(z^2)*a;

Avinash Tallapaneni
on 2 Sep 2016

pizza=pi*z*z*a.............

Liu WeiFeng
on 2 Sep 2016

pi*z*z*a

Liu WeiFeng
on 2 Sep 2016

ans = pi*z*z*a

Mohammad Mostafavi
on 2 Sep 2016

pi*z*z*a

anand konjengbam
on 2 Sep 2016

pi*z*z*a

Markus Hail
on 2 Sep 2016

delicious= pi*z*z*a;

Kuntal Satpathi
on 2 Sep 2016

pi*z*z*a

Kuntal Satpathi
on 2 Sep 2016

z*z*a*Pi

Kuntal Satpathi
on 2 Sep 2016

z = 1;
a = 1;
v_correct = pi;
assert(isequal(pizza(z,a),v_correct))

Pelin Demir
on 2 Sep 2016

pi.z.z.a

Mateusz Dutka
on 2 Sep 2016

Interesting :)

Pelin Demir
on 2 Sep 2016

pi*z*z*z

umar.niazi
on 2 Sep 2016

Volume = pi*z*z*a;

Shiva Teja
on 2 Sep 2016

pi*z*z*a

PRUDHVI RAJU
on 2 Sep 2016

GLORIA MIORI
on 2 Sep 2016

Volume = pi*z*z*a

Diego Corona
on 2 Sep 2016

I want some pi*z*z*a

Daniel Linares
on 2 Sep 2016

Pi*z*z*a

Emmanuel Idachaba
on 2 Sep 2016

function [Volume] = findVolume(r,h)
input(radius of pizza is: );
input(thickness of pizza is: );
Volume = pi*r*r*h;
end
% The output "produce" pizza, which got me salivating.

Fady Baly
on 2 Sep 2016

this should be an awesome pi*z*z*a

Isabeau Jensen
on 2 Sep 2016

pi*z*z*a :D

Lu Zhang
on 2 Sep 2016

pi*z*z*a :D

Thomas Blackwood
on 2 Sep 2016

V = a*\pi*z^{2}

Umberto Antonio Rammazzo
on 2 Sep 2016

pi*z*z*a

faraz masroor
on 2 Sep 2016

pi*z*z*a!

faraz masroor
on 2 Sep 2016

pi*z*z*a

Dogacan OZDEMIR
on 2 Sep 2016

pi*z*z*a

Daniele Giovanelli
on 2 Sep 2016

pi*z*z*a

Dogacan OZDEMIR
on 2 Sep 2016

F(z)=pi*z*z*a

Zepeng Ma
on 2 Sep 2016

F(z)=pi*z*z*a

Francesco Benzi
on 2 Sep 2016

pi*z*z*a

Guoqin Liu
on 3 Sep 2016

F(z)=pi*z*z*a

ayyappa rudrasimha yedida
on 3 Sep 2016

pi*z*z*a

Matthias Kraenzler
on 3 Sep 2016

pi*z*z*a

Garrett Morin
on 3 Sep 2016

Volumeofpizza = pi*z*z*a %This is the volume of a cyclinder (pi*r^2*a)

Garrett Morin
on 3 Sep 2016

pi*z*z*a

Garrett Morin
on 3 Sep 2016

It's interesting because pi is in pizza and pi*r^2*h is the volume of a cylinder. In this case we are assigning the radius of the pizza with z and the height with a!

KSchoepfer
on 3 Sep 2016

pi*z*z*a*
Yummmmm

Tank Zhang
on 4 Sep 2016

pizza......nice work!

Nguyen Chinh
on 4 Sep 2016

I am very interested in this Problem.

Muhammad Shoaib
on 4 Sep 2016

solution pi*z*z*a

Mustafa Gök
on 4 Sep 2016

Oww, it is best ...

ashaheer
on 4 Sep 2016

y=pi*z*z*a

Prateek Nagras
on 4 Sep 2016

pizza

Ivan Ivanov
on 4 Sep 2016

pi*z*z*a*

Nguyen Viet Dung
on 4 Sep 2016

pi*z*z*a*

Andres Merchan
on 4 Sep 2016

volume = pi*z*z*a

B Isaac
on 5 Sep 2016

Pi*z*z*a

byeong jun jeon
on 5 Sep 2016

V = pi*z*z*a

Saleha Safie
on 5 Sep 2016

pi*z*z*a

William Lee
on 6 Sep 2016

V = pi*z*z*a

Ueberbacher
on 6 Sep 2016

V=pi*z*z*a;
*hoho*

Nelson Busch
on 6 Sep 2016

V = pi*z*z*a

hans
on 6 Sep 2016

Could be p*i*z*z*a factorial? (Pizza!)

Sangram
on 7 Sep 2016

pizza = pi*z*z*a

George Archbold
on 7 Sep 2016

I thing that
F = (pi)*(z^2)*a

tejashree belhekar
on 8 Sep 2016

ans=pi*z*z*a

tejashree belhekar
on 8 Sep 2016

F = (pi)*(z^2)*a

tejashree belhekar
on 8 Sep 2016

Pi*zz*a

Meva
on 8 Sep 2016

It is fun as the answer is itself!

VÍctor Julián Gutierrez Cardona
on 8 Sep 2016

%Answer :
function volume = funpizza(z,a)
volume = pi*z*z*a;
end

VÍctor Julián Gutierrez Cardona
on 8 Sep 2016

%Answer:
function volume = funpizza(z,a)
volume = pi*z*z*a;
end

Vladimir Glavac
on 8 Sep 2016

function volume = pizza_volume(z,a) ;
volume = pi*z*z*a;
return;

Utku Gulbulak
on 8 Sep 2016

p*i*z*z*a

Giorgio
on 8 Sep 2016

function vol = piz(z,a) vol = pi*z*z*a; end

Akshayaa Pandiyan
on 9 Sep 2016

pi*z*z*a!!!

Jeyakumar T
on 9 Sep 2016

pi*z*z*a

SWETHA A V L
on 11 Sep 2016

radius=z
th=a
volume=pi*z*z*a

raviko
on 13 Sep 2016

where is my pi*z*z*a

Jonas Åberg
on 14 Sep 2016

v=pi*z*z*a

ankit sharma
on 14 Sep 2016

ans = pi * z * z * a;

Xiangrui Li
on 14 Sep 2016

pi*z*z*a
It is fun!

John Chan
on 14 Sep 2016

pi*z*z*a

Javier Izquierdo
on 14 Sep 2016

ans= pi*z*z*a

SHUAI
on 14 Sep 2016

"Pizza!"

Johanna Schwartz
on 14 Sep 2016

pi*z*z*a

Muhammad Islam
on 14 Sep 2016

ans= pi*z*z*a

Saket Adhikari
on 14 Sep 2016

Pi*z*z*a

Saket Adhikari
on 14 Sep 2016

pi*z*z*a

Zhaowen Lin
on 14 Sep 2016

ans = pi * z * z * a

Zhaowen Lin
on 14 Sep 2016

pi * z * z * a

Zhaowen Lin
on 14 Sep 2016

pi*z*z*a

Paco
on 14 Sep 2016

I'm really interested in knowing how to reduce the size of my answer (18).

muhammadasad8
on 14 Sep 2016

pi*z*z*a it should be

Yassir Mounsif
on 14 Sep 2016

pi*z*z*a

Omar osman
on 14 Sep 2016

Pi*z*z*a

Sawan Kumar Jindal
on 15 Sep 2016

pi*z*z*a as it is circular thus, pi*r*r is the area and a is the height/thickness.

Kenneth Calicdan
on 15 Sep 2016

pi*z*z*a

bayran arrieta
on 15 Sep 2016

F(z)=pi*(z^2)*a;

Le Duy
on 15 Sep 2016

pi*z*z*a

Jyot Antani
on 15 Sep 2016

pi*z*z*a

Scott McNally
on 15 Sep 2016

pi*z*z*a

Sam Bell
on 15 Sep 2016

pi*z*z*a

Jajati Routray
on 15 Sep 2016

V = pi*z*z*a

Anton Manoylov
on 15 Sep 2016

function [V] = pizza(z,a)
V = pi*z*z*a;
end

Bilal Metin Altinoz
on 15 Sep 2016

V = pi*z*z*a

Aj_ti
on 15 Sep 2016

volume = pi*z*z*a;

Ann G
on 15 Sep 2016

V=pi*z*z*a

Erica Ostrom
on 15 Sep 2016

ans = pi*z*z*a

Sandeep Kumar
on 15 Sep 2016

pi*z*z*a

Tomas Debye
on 15 Sep 2016

V = pi*z*z*a

leandro1555
on 15 Sep 2016

ans = pi*(z^2)*a

Liudmila Dolgikh
on 15 Sep 2016

pi*z^2*a

Teresa Sellos
on 15 Sep 2016

ans = pi * z * z * a

Thanki Rohit
on 16 Sep 2016

z = input('Enter the radius of a pizza: ');
a = input('Enter the thickness of a pizza: ');
V=pi*z*z*a

Ivan Gritzkevich
on 16 Sep 2016

3.14*ztrans(ztrans(a))

xiyangyang0611
on 16 Sep 2016

ans = pi * z * z * a

Melissa
on 16 Sep 2016

V=pi*z*z*a

xiyangyang0611
on 16 Sep 2016

y = pi*z*z*a

Cody Saunders
on 17 Sep 2016

ans = pi*z*z*a

Charles Hendrix
on 17 Sep 2016

V = pi .* (z .^ 2) .* a;

Amit
on 18 Sep 2016

Volume = pi * z * z * a

abdul azim
on 19 Sep 2016

ans = pi*z*z*a ..........hahhahahha

zhao xinlai
on 19 Sep 2016

Answer:
R=z;
H=a;
V=pi*(R^2)*H;

leticia terán
on 20 Sep 2016

V = pi .* (z .^ 2) .* a;

leticia terán
on 20 Sep 2016

V=pi*z^2*a

Samantha Kulpinski
on 20 Sep 2016

V=pi*z*z*a

Samantha Kulpinski
on 20 Sep 2016

V=pi*z*z*a;

Jorge Allar
on 20 Sep 2016

V=pi*z^2*a

Lauren Sommers
on 21 Sep 2016

V=pi*z*z*a

Sergey Sergey
on 23 Sep 2016

funtction [V] = pizza_volume(z,a)
V=pi*z^2*a;
end

Matteo Malacarne
on 24 Sep 2016

Funny!!!

Shengping Wang
on 26 Sep 2016

y=pi*z^2*a

ileyda dikmen
on 26 Sep 2016

y= pi*z^2*a

Andrea Tramunt
on 27 Sep 2016

V = pi*z*z*a

Haris Smajilovic
on 29 Sep 2016

y=pi*z^2*a

Jaeho Seol
on 18 Oct 2016

indeed.

Qiyan Lian
on 25 Oct 2016

Easy

jang hyen kim
on 7 Nov 2016

this's funny

jang hyen kim
on 7 Nov 2016

easy

Muhammad M Sahari
on 20 Dec 2016

i like these basic questions, they dont really require you to go through the manuals and basic.

Gan Wee Ting
on 20 Dec 2016

interesting question

Adi Zabidi
on 27 Dec 2016

yay

haziq hadi
on 27 Dec 2016

so i need a piz2a now

mohd mu'aazullah yaakob
on 27 Dec 2016

good one

Kunwar Abdul Rahman
on 27 Dec 2016

nice

Nadhirah Nordin
on 28 Dec 2016

nice

Puchai Punyavan A/L Usa
on 29 Dec 2016

Pretty tricky and funny. haha, XD

Muhammad Aliff Ibrahim
on 29 Dec 2016

lol very easy

Mohan Shanmugam
on 30 Dec 2016

:)

Ibrahim Hassan
on 5 Jan 2017

That was a tough one

dsathyaraj dorairaj
on 9 Jan 2017

nice

Praneet Kala
on 23 Feb 2017

My favorite food is pi*z*z*a

Dongdong Yue
on 24 Mar 2017

Very funny problem!

Nishant Chandrashekhar
on 25 Mar 2017

nice

3 players like this solution

1 Comment

mohd mu'aazullah yaakob
on 27 Dec 2016

nice

2 players like this solution

1 Comment

sim yoke meng
on 20 Dec 2016

ez

2 players like this solution

1 Comment

Anthony Muscarello
on 7 Dec 2016

nice and easy

5 players like this solution

5 Comments

Show
2 older comments

Brayan Alfonso
on 18 Sep 2016

V = pi .* (z .^ 2) .* a;

leticia terán
on 20 Sep 2016

V=pi*z^2*a

Sergey Sergey
on 23 Sep 2016

function [V] = pizza_volume (z, a)
V = pi*a*z^2;
end

Isaac
on 29 Sep 2016

y=pi*z^2*a

SANGWOO CHANG
on 5 Nov 2016

good solution

10 players like this solution

22 Comments

Show
19 older comments

Kehinde OROLU
on 5 Sep 2016

It is fun because the volume is pizza!

Akshayaa Pandiyan
on 9 Sep 2016

function vol = piz(z,a)
return pi*z*z*a;

John Chan
on 14 Sep 2016

function vol = piz(z,a) return pi*z*z*a;

Antonio
on 14 Sep 2016

pi*z*z*a

Johanna Schwartz
on 14 Sep 2016

pi*z*z*a

Prayash Mohapatra
on 14 Sep 2016

pi*z*z*a

Nazar Burmasov
on 14 Sep 2016

pi*z*z*a

Yassir Mounsif
on 14 Sep 2016

pi*z*z*a

Achmad Baskara
on 15 Sep 2016

pi*z*z*a

Achmad Baskara
on 15 Sep 2016

ans = pi * z * z * a

Le Duy
on 15 Sep 2016

pi*z*z*a

Sam Bell
on 15 Sep 2016

pi*z*z*a

Sam Bell
on 15 Sep 2016

V= pi*z*z*a

Sam Bell
on 15 Sep 2016

ans = pi * z * z * a

Thor Laasholdt
on 15 Sep 2016

pi*z*z*a

Silver Shen
on 15 Sep 2016

V = pi*z*z*a

Adan Anchondo
on 15 Sep 2016

V=pi*z*z*a

Seunghee Lee
on 15 Sep 2016

pi*z*z*a

Cody Saunders
on 17 Sep 2016

ans = pi*z*z*as

Amit
on 18 Sep 2016

Volume = pi * z * z * a

Engineering Ruhuna
on 18 Sep 2016

Volume = pi * z * z * a

Cynthia
on 18 Sep 2016

pi*z*z*a = Volume

1 player likes this solution

4 Comments

Show
1 older comment

Garrett Morin
on 3 Sep 2016

Not sure how this works.... such a head ache QQ

Kishore Kumar
on 4 Sep 2016

Answer is : "ans = pi * z * z * a"

Le Duy
on 15 Sep 2016

ans = pi * z * z * a

Cody Saunders
on 17 Sep 2016

ans = pi*z*z*a

2 players like this solution

1 Comment

Michael Ebert
on 2 Sep 2016

pi*z*z*a*

5 Comments

Show
2 older comments

Mayank Malaviya
on 2 Sep 2016

How to reduce it?

Diego Corona
on 2 Sep 2016

Awesome pi*z*z*a

Fady Baly
on 2 Sep 2016

This is an awesome pi*z*z*a

Thomas Blackwood
on 2 Sep 2016

V = a*π*z^{2}
I'm not sure I did this right...

Daniel Santos
on 2 Sep 2016

pi*z*z*a

2 players like this solution

5 Comments

Show
2 older comments

Abdo TIFIRASS
on 1 Sep 2016

This function pizza gives its volume which is also it's name.

Santi
on 2 Sep 2016

F(z) = pi*(z^2)*a;

Markus Hail
on 2 Sep 2016

delicious= pi*z*z*a;

Fady Baly
on 2 Sep 2016

this should be an awesome pi*z*z*a

Dharmendra Kumar
on 22 Sep 2016

ometimes “pizza” can be a formula and a food (number 13 makes everyone smile)

5 Comments

Show
2 older comments

mujeeb rehman
on 1 Sep 2016

p*i*z*z*a is angry

Miguel Talavera
on 1 Sep 2016

p*i*z*z*a

Riccisongbird
on 1 Sep 2016

Good one! Pi*zz*a is the answer.

Alexander Kuhn
on 1 Sep 2016

Pi*z^2*a

Diego Corona
on 2 Sep 2016

p*i*z*z*a

1 player likes this solution

1 Comment

Mihir Gadkari
on 1 Sep 2016

The name "pizza" says it all.

2 players like this solution

2 Comments

Vineet Madasseri Payyappalli
on 1 Sep 2016

give a pizza to get a pizza

Angélica Parra
on 1 Sep 2016

ans=pi*z*z*a

1 Comment

Bishesh Acharya
on 1 Sep 2016

its pizza that's why

1 Comment

Giulio Masetti
on 1 Sep 2016

This is a fun spelling joke!

1 player likes this solution

5 Comments

Show
2 older comments

Torsten Knodt
on 1 Sep 2016

Cody seems to not accept anonymous functions, despite code is shorter.

Deeksha Lal
on 1 Sep 2016

ans= pi*z*z*a

priyanka jayakumarr
on 1 Sep 2016

ans=pi*z*z*a

Moroni BerRíos
on 1 Sep 2016

z*z*a*pi

James Taylor
on 1 Sep 2016

z*z=d
Pi=3.1415926...
ans=Pi*z*z*a

3 Comments

Sam Fincham
on 1 Sep 2016

y = a*z*z*3.14123fd222234gh

Nicha
on 1 Sep 2016

ans = pi*z*z*a

Simon Strobl
on 1 Sep 2016

A = pi*z*z*a

7 players like this solution

1 Comment

Jay Sepehri
on 25 Mar 2016

Very smart use of parameter names. pi*z*z*a

1 Comment

Dale Crawford
on 7 Dec 2015

because pizza!

1 player likes this solution

1 Comment

Brian Butler
on 13 Nov 2015

Because the solution can be spelled
like pizza, pi*z*z*a !!!

1 Comment

Philipp
on 2 Sep 2015

;-) now I get it...

1 player likes this solution

1 Comment

Marco Wassmer
on 3 Mar 2015

because y = pi*z*z*a;

1 Comment

Bauyrzhan Aubakir
on 1 Sep 2016

Wow

2 Comments

Antonio
on 24 Oct 2014

How can one get this code any shorter???

Jean-Marie Sainthillier
on 24 Oct 2014

You can for example use ans instead of y to store the result.

8 players like this solution

2 Comments

Norbert Marwan
on 2 Sep 2016

Why is this a leading solution? The complexity is higher than a simple "pi * z * z * a".

fahad aljabal
on 29 Dec 2016

.

1 Comment

aiab
on 17 Dec 2013

cylinder size = pi*radius^2*hieght

1 Comment

Kemal Elmizan
on 9 Sep 2013

haha

1 Comment

Arief Anbiya
on 4 Aug 2013

hmmm

1 Comment

Hari
on 22 Jul 2013

question is very simple need more

4 players like this solution

2 Comments

Kumar Sandeep
on 11 Jul 2013

pi*z*z*a
that is why it is called 'pizza'

TAO Ran
on 7 May 2014

good job!

1 Comment

Forest
on 18 Jul 2013

I have no idea on this regular expression. Could you explain what is happening here?

1 Comment

Anirudh Iyer
on 15 May 2013

Haha...interesting!

2 players like this solution

2 Comments

Pranav
on 24 Nov 2012

Good Solutions!

Ivan Gritzkevich
on 16 Sep 2016

nice

3 players like this solution

6 Comments

Show
3 older comments

Kye Taylor
on 23 Mar 2012

Hahahaha

Rodrigo
on 25 Mar 2013

muito boa!

Novel Certad
on 25 Jun 2013

hahahahahahaha now I understand why it's so interesting

Ozan Gunaydin
on 25 Sep 2014

Nice design:)

Vishal Gaurav
on 2 Sep 2016

pi*z*z*a

avreddy
on 22 Sep 2016

pi*z*z*a

**Tags**

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

Learn moreOpportunities for recent engineering grads.

Apply Today
200 players like this problem

200 players like this problem