永发信息网

vb编程某一日期至今天数

答案:2  悬赏:70  手机版
解决时间 2021-02-28 16:38
  • 提问者网友:最爱你的唇
  • 2021-02-27 15:49
vb编程某一日期至今天数
最佳答案
  • 五星知识达人网友:不如潦草
  • 2021-02-27 17:18

private sub form_click()
dim x as integer, y as integer, h as integer, f as integer
h = inputbox("输入总只数")
f = inputbox("输入脚数")
y = (4 * h - f) / 2
x = h - y
print "鸡有:" & x
print "兔子有:" & y
end sub

全部回答
  • 1楼网友:街头电车
  • 2021-02-27 18:01
Dim firstDate, msg As String Dim secondDate As Date firstDate = InputBox("Enter a date") secondDate = CDate(firstDate) msg = "Days from today: " & DateDiff(DateInterval.Day, Now, secondDate) MsgBox(msg)
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯