Professional Documents
Culture Documents
look at a program
We frequently as a
user, we're used to it.
delivering a response
or computation.
It's going to be
a very simple one
So as before,
a pre-processor token.
We will define Pi to
six significant
figures because that's
what we get to store
in a normal double.
So it's 3.14159.
Again, we introduce a
program, which is main.
in which we define
area and radius.
Identifiers can be
ordinary words,
unless they're
keywords like double.
We initialize area to
zero and radius to zero.
re-doing constants
which are double.
Otherwise, if we just
didn't do anything,
So it prompts the
user to enter radius.
later in detail in
the course because
So we use repeated
multiplication,
Oh yes, 3.1459.
is outside of using
a format string.
Where you want the input,
In this case,
doubles, so it's lf.
If it was an integer,