1 solutions
-
0
C :
#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b) != EOF) printf("%d\n",a+b); return 0; }C++ :
#include<iostream> using namespace std; int main(){ int a,b; while(cin>>a>>b) cout<<a+b<<endl; }Pascal :
var x,j,h,a,b,c:integer; begin readln(x,j); readln(h,a); readln(b,c); writeln(x+j); writeln(h+a); writeln(b+c); end.Java :
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()) { int i=sc.nextInt(); int j=sc.nextInt(); System.out.println(i+j); } } }
- 1
Information
- ID
- 19005
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By