C Program to Find Area and Circumference of a Circle वृत्त का क्षेत्रफल एवं परिधि ज्ञात करने का प्रोग्राम
In C language, the area and circumference of a circle can be calculated when its radius is given. The mathematical formulas are used to perform these calculations. सी लैंग्वेज में वृत्त की त्रिज्या (Radius) दी गई होने पर उसका क्षेत्रफल (Area) तथा परिधि (Circumference) ज्ञात की जा सकती है। इनकी गणना के लिए गणितीय सूत्रों का प्रयोग किया जाता है। Formulas सूत्र: Area of Circle = π × r × r Circumference of Circle = 2 × π × r Where r represents the radius of the circle and π (pi) is approximately 3.14. जहाँ r वृत्त की त्रिज्या है तथा π (पाई) का लगभग मान 3.14 लिया जा सकता है। C Program #include <stdio.h> int main(void) { const float pi = 3.14f; float r, area, cir; printf("Enter the radius of a circle: "); scanf("%f", &r); if (r <= 0) { printf("Radius must be a positive value.\n"); } else { area = pi * r * r; cir = 2 * pi * r; printf("Area of circle = %.2f\n", area); ...