这个要怎么做啊 有没有大神教一下

1.输入矩形的长与宽,计算矩形面积
2.输入一个时间值 s,它是距当日午夜的秒值,计算目前的时间,时间按 HH:MM:SS 格式
输出。
3.如 a=1、b=2、c=3、d=0 写出下列的逻辑值:
(1) a>b and b>c or a+b

(2) a-bc and not c 不

(3) not d or b>c+a or a 不

(4) d and b and c>d and a*b>c 不

(5) not (a>b and c>d) 不

(6) a*b>c or b+c>d and not d

(7) c+d<=b+d and dc

(8) da+b+d and b4.有一个数 x 在区间[-5,0]内,写出其条件表达式。
5.写出下面表达式的值(设 a=1,b=2,c=3,x=4,y=3)
(1) a+b>c and b==c 不会
(2) not a(3) a+(b>=x+y) and c-a and y-x
(4) not (x=a) and (y=b) and 0
(5) not (a+b)+c-1 and b+c/2
(6) a or 1+'a’ and b and 'c’ 不会