Redian新闻
>
who call tell the answer of this simple question?
avatar
who call tell the answer of this simple question?# Unix - 噫吁兮,危乎高哉
c*y
1
A programmer extends this script to check whether the input is a valid decimal
number. If it isn't, the program outputss
the string"NotANumber"(without quotes). The resulting code is
1 #!.usr.dt.bin.dtksh
2
3 N=${1}
4
5 if ["${N}" -eq"0${N}"] 2>/dev/null
6 then
7
8 dc <9 ${N}
10 16
11 o
12 p
13 end_of_input
14
15 #Answer to this question
16
17 fi
avatar
c*y
2
No one knows shell commands? I guess that's not a hard question although I
don't know
what the answer is.

decimal

【在 c********y 的大作中提到】
: A programmer extends this script to check whether the input is a valid decimal
: number. If it isn't, the program outputss
: the string"NotANumber"(without quotes). The resulting code is
: 1 #!.usr.dt.bin.dtksh
: 2
: 3 N=${1}
: 4
: 5 if ["${N}" -eq"0${N}"] 2>/dev/null
: 6 then
: 7

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。