📄 lind5-10.c
字号:
#include<stdio.h>
main()
{
float x,y,height,a,b,c,d;
lin: printf("\nPlease input the coordinate of the point.\n");
scanf("%f,%f",&x,&y);
a=(x-2)*(x-2);
b=(x+2)*(x+2);
c=(y-2)*(y-2);
d=(y+2)*(y+2);
a+c<=1||a+d<=1||b+c<=1||b+d<=1 ? (height=10):(height=0);
printf("The height is %.0f\n",height);
goto lin;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -