Computer Science, asked by loveyrawat87890, 8 months ago

Given the following detailed description, identify the objects, data members, and operations
that can be used to solve the problem. "Write a program to input the radius of a circle and
calculate and print the diameter, circumference, and area of the circle."
Create a class with a single method that will find the minimum value in a nne-dimensional​

Answers

Answered by Anonymous
1

Answer:

/*

* C Program to calculate area of a circle

*/

#include <stdio.h>

#include <conio.h>

 

#define PI 3.141

 

int main(){

   float radius, area;

   printf("Enter radius of circle\n");

   scanf("%f", &radius);

   /* Area of Circle = PI x Radius X Radius */

   area = PI*radius*radius;

   printf("Area of circle : %0.4f\n", area);

     

   getch();

   return 0;

}

Explanation:

import math

radius = float(input("Enter the radius of the circle : "))

circumference = 2 * math.pi * radius

print("Circumference of the circle is : %.2f" % circumference)

Similar questions