YTU 1001: A+B Problem

网友投稿 270 2022-08-28

YTU 1001: A+B Problem

1001: A+B Problem

时间限制: 1 Sec   内存限制: 10 MB

提交: 4864

解决: 3132

[

​​提交​​][

​​状态​​][

​​讨论版​​]

题目描述

Calculate a+b

输入

Two integer a,b (0<=a,b<=10)

输出

Output a+b

样例输入

1 2

样例输出

3

迷失在幽谷中的鸟儿,独自飞翔在这偌大的天地间,却不知自己该飞往何方……

#include using namespace std;int main(){ int a,b; cin >> a >> b; cout << a+b << endl; return 0;}

#include int main(){ int a,b; scanf("%d %d",&a, &b); printf("%d\n",a+b); return 0;}

program p1000(Input,Output); var a,b:Integer; begin Readln(a,b); Writeln(a+b); end.

import java.io.*;import java.util.*;public class Main{ public static void main(String args[]) throws Exception { Scanner cin=new Scanner(System.in); int a=cin.nextInt(),b=cin.nextInt(); System.out.println(a+b); }}

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:HDU 1051:Wooden Sticks
下一篇:怎么做新营销6:产品创新的三大技法!(怎样进行营销创新)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~