Campbell Ritchie wrote:What language is that?
Radius is defined in line 15 as a parameter to the area_circle() function. Are you using that function? You appear to have all sorts of different spellings, rad and RAD, perimeterAnddiameter and perimeterYdiameter, which seem to be swapping between English and spanish. Does that code actually compile and run?
If you defined those variables as Real, why are you using 3 instead of π?
It is not a language, it is pseudocode. It is to learn programming logic.
The code works perfect. I defined it as real and then put 3 instead of the value of PI(3,14) to quickly check if the results were correct (so as not to use the calculator).
I did not know that the arguments could be defined after putting the function name. Anyway, it defines the radio variable after writing the function name but I don't know what data type it is. I assume that it is defined from the line 3