1 solutions
-
0
C :
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); printf("%d",a+b); }C++ :
#include <cstdio> using namespace std; int main() { int a,b; scanf("%d%d",&a,&b); printf("%d",a+b); return 0; }Pascal :
var a,b,c:longint; begin read(a,b); c:=a+b; write(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 a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a + b); } } }
- 1
Information
- ID
- 19188
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By