Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  1
Language: C/C++
Code:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
    double x, y;
    printf("请输入X:");
    scanf("%lf", &x);
    printf("请输入Y:");
    scanf("%lf", &y);
    printf("计算结果:%lfn", 2*sqrt(pow(-13.5-x, 2.0) + pow(0-y, 2.0)));
    system("pause");
    return 0;
}          
          
Comments: