1 solutions
-
0
C :
#include <stdio.h> #include <stdlib.h> int add(int a,int b) { return a+b; } int main() { int a,b; scanf("%d%d",&a,&b); printf("%d",add(a,b)); return 0; }C++ :
#include<cstdio> using namespace std; int jiafa(int a,int b) { return a+b; } int main() { int a,b,x,y; scanf("%d %d",&a,&b); printf("%d\n",jiafa(a,b)); return 0; }Pascal :
var a,b:integer; function fun(c,d:integer):integer; begin fun:=c+d; writeln(fun); end; begin read(a,b); fun(a,b); end.
- 1
Information
- ID
- 18539
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By