Cod sursa(job #404599)
Utilizator | Data | 26 februarie 2010 12:53:52 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | teme_upb | Marime | 0.26 kb |
#include<stdio.h>
#include<stdlib.h>
int main ()
{
int a;
int b;
int x;
FILE* f = fopen("adunare.in","r");
fscanf(f,"%d", &a);
fscanf(f,"%d", &b);
fclose(f);
f = fopen("adunare.out","w");
x=a+b;
fprintf(f,"%d",x);
fclose(f);
return 0;
}