看板 ESOE-91 關於我們 聯絡資訊
#include <stdio.h> #include <math.h> int main(void) { double x,y,r,sida; printf("請輸入(x,y)\nx="); scanf("%lf",&x); printf("y="); scanf("%lf",&y); r = sqrt(x*x+y*y); sida = atan2(y,x); printf("(%lf,%lf)=>(%lf,%lf)\n",x,y,r,sida); return 0; } -- ※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw) ◆ From: 140.112.240.76