VB编写程序,输入一个n为的正整数,求其反序数并输出.例如,输入的正整数为1234,输出则为4321
VB编写程序,输入一个n为的正整数,求其反序数并输出.例如,输入的正整数为1234,输出则为4321
日期:2021-04-03 03:05:59 人气:4
dim i as integer, m as integer
dim tem as string ,Str_tem as string
i = text1.text
tem =Cstr(i)
tem = StrReverse(tem)
i = val(tem)
print i
dim tem as string ,Str_tem as string
i = text1.text
tem =Cstr(i)
tem = StrReverse(tem)
i = val(tem)
print i