//Example program - circumference of a circle (PI * diameter)

#include <stdio.h>

#define PI 3.1415

void main()
{
float total;
float diameter;

printf("Please enter diameter of circle in cms:");
scanf("%f",&diameter);
total=diameter * PI;

printf("The circumference of the circle is: %.2f",total);
}