标签:
1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 #include<cmath> 6 using namespace std; 7 int main() 8 { 9 double a,b; 10 double a1,b1; 11 while(~scanf("%lf%lf",&a,&b)) 12 { 13 a1=a/sqrt(a*a+b*b); 14 b1=b/sqrt(a*a+b*b); 15 printf("%.1lf+%.1lfi\n",a1,b1); 16 } 17 return 0; 18 }
标签:
原文地址:http://www.cnblogs.com/cancangood/p/4392317.html