C Program to convert kilometer to miles using preprocessor directive

Program

#include<stdio.h>
#define CONV 0.621371
void main()
{
    float kilometer, miles;
    printf("Enter the value for Kilometers:\n");
    scanf("%f", &kilometer);
    miles = CONV * kilometer;
    printf("%3.1f kilometers in miles is:\t%3.3f\n", kilometer, miles);
}

Output

Enter the value for Kilometers:
130
130.0 kilometers in miles is:   80.778