question4-2-2.cpp
来自「This is solution code c++ in class lesso」· C++ 代码 · 共 23 行
CPP
23 行
#include<iostream>
using namespace std;
int main()
{
int a,b;
int result = 0;
cout << "Enter a number:";
cin >> a;
cout << "Enter second number:";
cin >> b;
int tmp = a;
while (tmp >= b)
{
tmp = tmp - b;
++result;
}
cout << a << " / " << b << " = " << result << endl;
system("pause");
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?