[C++ Question-001] Finally started, the first question "A+B problem"

        Hello everyone, next we will give you a never-ending tutorial based on the C++ questions on our Xingyi oj platform, which will last for a long time!

        ​ ​ Let’s talk about the website address first: Xingyi OnlineJudge, you may not have an account, please send me a private message and I will contact the administrator. You distribute it, first we click on the title.

Click on the A1000 A+B question to first look at the question requirements.

First, we need to lay out the framework we need.

#include <iostream>
using namespace std;
int main(){
    
    
    
    
    return 0;
}

Because there are two variables here, we define two variables first.

int a,b;

Then enter these two variables.

 

Guess you like

Origin blog.csdn.net/weixin_61897919/article/details/134768138