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.

So the correct syntax should be:

if ( 24.5 <= 25.0 ) then

This will fix the syntax error and the if statement will be executed correctly.

c shell if 245 = 250 thenif Badly formed number

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

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