C语言循环实例1 C语言字符串格式化实例 C语言循环实例2 C语言循环实例1 /* shoes1.c -- converts a shoe size to inches */ #include <stdio.h> #define ADJUST 7.31 // one kind of symbolic constant int main(void) { const double SCALE = 0.333; // another kind of symbolic constant double shoe, foot; shoe = 9.0; foot = SCALE * shoe + ADJUST; printf("Shoe size (men's) foot length\n"); printf("%10.1f %15.2f inches\n", shoe, foot); return 0; } C语言字符串格式化实例 C语言循环实例2