Just wanted to see if there are any flaws, and if its correctly written.
Code:
//Description: Write a program that will convert miles to the
// equivalent number of yards, feet, and inches.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
float miles;
printf("Input the distance in miles ");
scanf("%f", &miles);
// 1 mile = 1760 yards
printf("Value in yards is %f", miles*1760);
// 1 mile = 5280 feet
printf("\nValue in feet is %f", miles*5280);
// 1 mile = 5280 feet * 12 inches
printf("\nValue in inches is %f", miles*5280*12);
return 0;
}