Exercise 3.1

来源:互联网 发布:广数英制螺纹怎么编程 编辑:程序博客网 时间:2024/06/04 00:21
#include<iostream>using namespace std;int main(){    const int rate = 12;    cout << "Enter the your height in inch:____\b\b\b\b";    int inch;    cin >> inch;    cout << "Your height is " << inch / rate << " feet and " << inch % rate << " inches." << endl;    return 0;}

原创粉丝点击