Cod sursa(job #3254437)

Utilizator PopescovicescovPopescu Radu Popescovicescov Data 7 noiembrie 2024 16:37:48
Problema A+B Scor 100
Compilator c-64 Status done
Runda Arhiva de probleme Marime 0.25 kb
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a,b;
    FILE *r,*w;
    r = fopen ("adunare.in","r");
    w = fopen ("adunare.out","w");

    fscanf (r,"%d/r",&a);
    fscanf (r,"%d",&b);
    fprintf (w,"%d",a+b);
    return 0;
}