The error "if: Badly formed number" occurs because there is a syntax error in the condition of the if statement. In c shell, the less than or equal to operator is written as "< =" without any spaces between the less than and equal to symbols. \n\nSo the correct syntax should be:\n\nc shell\nif ( 24.5 <= 25.0 ) then\n\n\nThis will fix the syntax error and the if statement will be executed correctly.

C Shell

原文地址: https://www.cveoy.top/t/topic/qqHA 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录