题解 1000: [竞赛入门]简单的a+b

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

简单的a+b (Java代码)

摘要:解题思路:建立类,然后再创建两个变量,最后将他们加起来即可  注意事项:注意在最后将n变量闭合,不然会出现警告,虽然不影响正常程序的运行,但在以后的代码路程中,良好的习惯还是非常的重要的参考代码:im……

简单的a+b (C++语言代码)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cout<<a+b……

小白python系列-简单的a+b

摘要:解题思路:简单的a+b注意事项:我将其写成小白都学的会的那种参考代码:while True:try:a,b=map(int,input().strip().split())print(a+b)exce……

简单的a+b (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) {    int a,b;     scanf("%d%d",&a,&b);     pri……

简单的a+b (C语言代码)

摘要:解题思路:无注意事项:无参考代码:#include<stio.h>int main(){it a,b,c;scanf("%d%d",&a,&b);c=a+b;printf("%d",c);return……

简单的a+b (C语言代码)

摘要:解题思路:运用scanf和printf来进行解题注意事项:scanf语句不要忘记&参考代码:#include <stdio.h>main(){    int a,b;    scanf("%d%d",……

简单的a+b (C语言代码)

摘要:解题思路:需要输入参数和输出注意事项:需要判断参数的输入大小;参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d", &a, &b……

简单的a+b (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int a,b; int c;scanf("%d %d",&a,&b);c=a+b;printf("sum=%d",c)……