Sorry to disturb you again, i have made following code to calculate circle related algorithm.

Code:

#include <stdio.h>
#include <stdlib.h>
int main()
{ //Program to find area, circumference and diameter of circle based on Radius.
float diameter;
float circumference;
float radius;
float area;
float pie;
diameter = radius * 2;
circumference = diameter * pie;
radius = diameter / 2;
area = radius * pie * radius;
pie = circumference / diameter;
// Enter the value of Radius for calculation of above.
printf("Please enter the value of circle radius \n");
scanf("%f", &radius);
// Calculation of Pie
printf("The Pie of Circle is %f\n", pie);
//scanf("%f",&pie);
// Calculation of Circle's Area.
printf("The circle area is %f\n", area);
//scanf("%f",&area);
// Calculation of Circumference of Circle.
printf("The Circumference of Circle is %f\n", circumference);
//scanf("%f",&circumference);
// Calculation of Diameter of Circle.
printf("The Diameter of Circle is %f\n", diameter);
//scanf("%f",&diameter);
return 0;
}

i am looking the result of all pie,area,circumference,diameter after input of radius, but unable to get there.