/* C Program Code to Calculate area and perimeter of circle using radius */
#include <stdio.h>
int main() {
float a, p, r;
printf("Enter the radius of a circle:\n");
scanf("%f", &r);
a = 3.14 * r * r;
p = 2 * 3.14 * r;
printf("The area and perimeter of a circle are: %f %f\n", a, p);
return 0;
}