#include main() { float kgs, lbs; /* The float statement creates a single-precision floating point variable (one that can have a decimal point). */ printf("\nEnter a weight in kilograms: "); scanf("%f", &kgs); /* The %f format specification is exactly like %d, but it indicated a float variable. */ lbs = kgs * 2.2; /* Exactly what it looks like. Don't forget the semi-colon! */ printf("\n%6.2f kilograms = %6.2f pounds\n", kgs, lbs); /* The number inside the format specification means that when printed, the variable should have a field width of six spaces and be rounded to two decimal places. */ }