Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
>What is the simplest explanation as to why these are needed? Why not just set regular variable values? So what if they are constant and don't change?
#define PI 3.14
you know pi is about 3.14 and it doesn't change. if you have some numbers and if you want see these numbers more clearly in code you use constants.
r=3
chamber = PI * r ** 2
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only