Skip to content

Instantly share code, notes, and snippets.

@pjastr
Created April 28, 2019 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjastr/3fbb402813a21020deac8cb55850b88d to your computer and use it in GitHub Desktop.
Save pjastr/3fbb402813a21020deac8cb55850b88d to your computer and use it in GitHub Desktop.

Przykładowe rozwiązanie zadania z przypadkiem testowym

#include <stdio.h>
#include <stdlib.h>

struct trojkat
{
    double a,b,c;
};

double obwod(struct trojkat param)
{
    return param.a+param.b+param.c;
}

int main()
{
    struct trojkat t1;
    t1.a=3.2;
    t1.b=4;
    t1.c=5;
    printf("%lf",obwod(t1));
    return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment