#include <stdio.h> int main(){ int n,m; double price; if (scanf("%d %d",&n,&m)!=EOF){ for (int i=0;i<n;i++){ if (scanf("%lf",&price)!=EOF){ if (price<m){ printf("On Sale! %.1f\n",price); // m = price; } } } } return 0; }
c语言编程练习题:7-176 降价提醒机器人
作者:yunjinqi
类别:编程
日期:2023-05-31 18:37:13
阅读:577 次
消耗积分:0 分
版权所有,转载本站文章请注明出处:云子量化, https://www.yunjinqi.top/article/300
最新文章
系统当前共有 404 篇文章