#include <stdio.h>
int main()
{
double a,b,c,d;
scanf("%lf %lf %lf %lf",&a,&d,&c,&b);
if(a>b)
{
printf("BW-Solid");
}else if(a==b)
{
printf("R-Cross");
}else
{
printf("R-Hollow");
}
if(c<a&&c<b&&d>a&&d>b)
{
printf(" with Lower Shadow and Upper Shadow");
}else if(c<a&&c<b)
{
printf(" with Lower Shadow");
}else if(d>a&&d>b)
{
printf(" with Upper Shadow");
}
}
5-13 日K蜡烛图 (15分)
最新推荐文章于 2021-12-09 08:55:35 发布
本文提供了一个使用C语言编写的简单程序示例,该程序通过输入四个浮点数来判断并输出不同的交易形态,例如'BW-Solid'、'R-Cross'等,并根据另外两个数值判断是否带有影线。
493

被折叠的 条评论
为什么被折叠?



