1. START 2. Define variables 'pi' as constant 3.14(we can define this a macro also) , and 'r' as radius 3. By taking diameter we can get the radius as one half of the diameter .i.e., r=d/2 4. And calculate the area of the circle with the formula pi * r * r 5. STOP
When compared to C and C++ we compiled the programs where the compiler resides. In java we can compile the program from any where through out the system.That's why we declare the main as PUBLIC, however it states that it acces the class members. More over we use the STATIC keyword to call the Main() … Read more