DEV_BUT1/DEV1.1/TP07/arctique.c

20 lines
336 B
C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void){
double r;
double o;
double x;
double y;
printf(" Donnez les coordonnées polaires : \n");
printf(" r = ");
scanf("%lf", &r);
printf(" o = ");
scanf("%lf", &o);
x = r*cos(o);
y = r*sin(o);
printf("%lf\n", x);
printf("%lf", y);
return EXIT_SUCCESS;
}