Cod sursa(job #2475697)

Utilizator cirlam515Cirlan Alexandru cirlam515 Data 17 octombrie 2019 13:20:38
Problema A+B Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.28 kb
#include <iostream>
#include <stdio.h>
#include <stdlib.h>

using namespace std;

FILE *f=fopen("adunare.in","rt");
FILE *g=fopen("adunare.out","wt");

int main()
{
    int a,b;
    fscanf(f, "%d", &a);
    fscanf(f, "%d", &b);
    fprintf(g, "%d", a+b);
    return 0;
}