⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assignment4-2-2-divide.cpp

📁 this code is code c++. have many lesson
💻 CPP
字号:
#include <iostream>
using namespace std;

int main()
{
    int num1,num2;
    int ans = 0;
    
    cout << "Input The 1st Integers : ";
    cin >> num1;
    cout << "Input The 2nd Integers : ";
    cin >> num2;
    
    do{
        num1 = num1-num2;
        ans++;
        }
    while (num1>0);
        cout << "The answer is : " << ans << endl;
    
    system("PAUSE");
    return 0;
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -