DEV/DEV1.1/TP07/arctique.c

14 lines
291 B
C
Raw Normal View History

2022-10-24 23:44:10 +02:00
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void){
double r;
double angle;
printf("Rentrez les coordonée du point(espace entre les valeurs:\n");
scanf("%lf %lf",&r,&angle);
printf("x=%lf\n",r*cos(angle));
printf("y=%lf\n",r*sin(angle));
return EXIT_SUCCESS;
}