From 411ef6c9e421c713fb3dc675bfaded63bede58a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=5BJMF=5D=E2=80=9D?= Date: Thu, 9 Nov 2023 00:20:10 +0100 Subject: [PATCH] Algebre --- TP6/algebre.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 TP6/algebre.c diff --git a/TP6/algebre.c b/TP6/algebre.c new file mode 100644 index 0000000..0458677 --- /dev/null +++ b/TP6/algebre.c @@ -0,0 +1,30 @@ +#include + +#define N 2 + +struct vector { + float _[N]; +}; + +int main() +{ + struct vector X; + void AfficheVect (struct vector X); + + X._[0]= 1; + X._[1]= 2.; + + AfficheVect(X); + + return 1; +} + +void AfficheVect (struct vector X) +{ + + for(int i=0; i