精英家教网 > 高中英语 > 题目详情

读程序,说明程序运行的结果.

(1)INPUTa=”;a

INPUTb=”;b

PRINTThe average=”;(ab)/2

END

(2)INPUTa=”;a

INPUTb=”;b

PRINTThe average=”;SQR(a*b)

END

答案:略
解析:

(1)求两个数的平均数.

(2)求两个数的几何平均数.


练习册系列答案
相关习题

科目:高中英语 来源: 题型:书面表达

3.据报道,今后我国中小学生在寒假、暑假之外,还有望享受春假和秋假.很多学生会利用假期外出旅行,请向外出旅行的学生推荐你最倾向的一至两种出行方式,并简要说明理由.
要求:120词左右(不包括已给出部分).
It's reported that Chinese primary and junior school students can hopefully enjoy spring and autumn holidays in the near future.

查看答案和解析>>

科目:高中英语 来源: 题型:选择题

10.---Well,didn't you attend the party?
---No,but had I hurried,I _________________.(  )
A.wouldB.would haveC.hadD.should

查看答案和解析>>

科目:高中英语 来源: 题型:阅读理解

19.Hundreds of years ago,a Roman army came north from England to make war on Scotland.The Scots,a brave people,loved their country very much.They fought hard to drive the enemy out of Scotland,but there were too many Romans.It looked as if the Romans would win.
One night,the leader of Scots marched his soldiers to the top of a hill."We will rest here tonight,my men,"he said."Tomorrow we will fight one more battle.We must win or we will die."
They were all very tired,so they ate their supper quickly and fell asleep.There were four guards on duty,but they,too,were very tired,and one by one,also fell asleep.
The Romans were not asleep.Quickly they gathered at the foot of the hill.Slowly they climbed up the hillside,taking care not to make a sound.Closer and closer they came to the sleeping Scots.They were almost at the top.A few minutes more,the war would be over.Suddenly,one of them put his foot on a thistle(蓟).He cried out and his sudden cry woke the Scots.In a moment,they were on their feet and ready for battle.The fighting was hard but it did not last long.The Scots wiped out the Romans and saved their country.
The thistle is not a beautiful plant.It has sharp needles all over it.Few people like it.But the people of Scotland liked it so much that they made it their national flower.
21.Hundreds of years ago there was a war betweenB.
A.Roman army and North England
B.Roman army and the Scots
C.England and Scots
D.a brave people and the Scots
22."We must win or we will die."What the leader of the Scots said meansD.
A.they were sure to win
B.they couldn't escape from death
C.they would win and then they would die
D.they must try hard to win,otherwise they would be killed
23.The Romans climbed up the hill quietly becauseA.
A.they didn't want to wake the Scots
B.they wanted to reach the top
C.they wanted to catch the four guards first
D.they were afraid of the sharp needles of the thistle
24.What's the main idea of the passage?D
A.The thistle is a beautiful plant
B.The people of Scotland like the thistle
C.The Romans are a brave people
D.The thistle helped the Scots win the battle.

查看答案和解析>>

科目:高中英语 来源: 题型:听力题

8.What can we know about Granny?
A.She is ill.
B.She doesn't like tonight's supper.
C.She is in hospital now.

查看答案和解析>>

科目:高中英语 来源: 题型:听力题

1.Rental Information
Name(16)Rex Smith
Phone Number(17)3575 609
FurnitureA bed,a desk,two chairs,and a bookshelf in the bedroom; new fridge and (18)cooker in the kitchen.
Rent$800a month,due on the (19)second day of each month.
TimeFrom July 1st to (20)December 31st.

查看答案和解析>>

同步练习册答案