DEV_BUT1/DEV1.1S/TP02/complexes.c
2023-02-08 11:18:16 +01:00

22 lines
415 B
C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void){
struct crocs{
double x;
double y;
double i = sqrt(-1);
double z = x+y*i;
}
double val1;
double val2;
double res;
double eee;
printf("Donnez une valeur : ");
scanf("%f", &val1);
printf("Donnez une deuxième valeur : ");
scanf("%f", &val2);
struct crocs cars = {val1;val2;eee;res}
printf("%f", res);
return EXIT_SUCCESS;
}