#include<stdio.h> float radius(float); int main() { float a,d; a=radius(d); printf("Radius of diameter is : %f",a); } float radius(float x) { float rad; printf("Enter Diameter of a circle"); scanf("%f",&x); rad = x/2; return(rad); }