14 lines
291 B
C
14 lines
291 B
C
#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;
|
|
} |