?? cmtofeet.c
字號:
/* * File: cmtofeet.c * ---------------- * This program reads in a length given in centimeters and converts * it to its English equivalent in feet and inches. */#include <stdio.h>#include "genlib.h"#include "simpio.h"main(){ double totalInches, cm, inch; int feet; printf("This program converts centimeters to feet and inches.\n"); printf("Length in centimeters? "); cm = GetReal(); totalInches = cm / 2.54; feet = totalInches / 12; inch = totalInches - feet * 12; printf("%g cm = %d ft %g in\n", cm, feet, inch);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -