Предмет: Информатика, автор: Помогать1

составте программу решающую следующую задачу дано число н если оно неотрицательно то возвести его в квадрат а если отрицательно то в третью степень

Ответы

Автор ответа: 373050026
0
program pr;
uses crt;
var n, r : integer;
begin
clrscr;
writeln('Enter n:');
readln(n);
if n>0 then
begin
r:=n*n;
end
else
begin
r:=n*n*n;
end;
writeln('Result=',r);
readln;
end.
Похожие вопросы
Предмет: Математика, автор: btsalovearmi
Предмет: Английский язык, автор: AdaSliserin
1 The volcano on the Indonesian island of Krakatoa …….. in 1883.
A erupted C exploded
B burst D burnt

2 The young girl started crying when the lights …….. suddenly.
A put out C went away
B went out D died out

3 The emergency services asked people to …….. the town quickly because the wildfire was getting closer.
A clean up C evacuate
B rebuild D locate

4 The firefighters …….. the fire before it got out of control.
A approached C came
B reached D arrived

5 An old building …….. during the earthquake.
A broke C damaged
B smashed D collapsed

6 In 2005, a hurricane …….. New Orleans, Louisiana.
A hit C happened
B occurred D broke out

7 The young man …….. without food for a week.
A rescued C survived
B saved D escaped
8 “A storm is coming! Get inside!” the old man …….. .
A shook C panicked
B shivered D cried

9 The …….. washed away the town’s bridge and filled the streets with water.
A flood C aftershock
B earthquake D hurricane

10 The …….. rain caused the river to burst its banks.
A torrential C light
B rough D strong

11 The volcano caused a huge cloud of smoke and …….. .
A lava C ash
B magma D rim

12 When my puppy hears thunder, she always gives a little …….. because she’s afraid.
A bang C sound
B noise D yelp

13 “Let’s go outside and get some …….. air!” said Mum.
A hot C fresh
B freezing D thick

14 Last weekend, the temperature …….. to over 40°C!
A lifted C rose
B raised D went
15 The firefighters arrived while the …….. was still burning.
A spark C flame
B fire D heat

16 In 1980 a volcanic …….. occurred at Mount St. Helens in the USA.
A avalanche C eruption
B explosion D thunder

17 The rain was …….. down as Tim and Belinda were hiking up Mount Olympus.
A pouring C dissolving
B melting D dropping
18 Chris enjoys having breakfast on the …….. of his new yacht.
A basement C porch
B barn D deck

19 The weather station …….. a hurricane warning last night.
A issued C expressed
B sent D called

20 You can’t always depend …….. the weather when you’re on holiday.
A in C at
B on D of
Предмет: Математика, автор: asvatolina98
Предмет: Английский язык, автор: madina593
26. Complete the sentence in Conditional:
If you leave now, you … …. the bus
A) will catch
B) would catch
C) are catch
D) would caught
E) are caught
27. Complete the sentence in Conditional:
If I … a helicopter, I … … to work
A) have, will fly
B) have, would fly
C) had, would fly
D) has, will fly
E) had, will fly
28. Complete the sentence in Conditional:
If you … the vase, it … …
A) drop, will break
B) drop, would break
C) dropped, will break
D) drop, has broken
E) dropped, has broken
29. Write the instruction for the situation:
A lot of students are standing up in a class. The teacher says:
A) Stop talking!
B) Open the books!
C) Sit down!
D) Do exercise № 3
E) Play football
30. Write the instruction for the situation:
You are talking to your friend in class. Your teacher says to you:
A) Stop talking!
B) Go on talking
C) Sit down!
D) Run!
E) Come back!
31. If you ______ the kitchen, you will see a vase with flowers.
A) Will enter
B) Enters
C) Enter
D) Would enter
E) Have been entering
32. I’d come out for a walk with you if I ______ so busy.
A) Be not
B) Would be not
C) Is not
D) Were not
E) Are not
33. She _____ promoted last year if she _____ with the boss.
A) would have been / doesn’t argue
B) would have been / hadn’t argued
C) will be / hadn’t argued
D) would have been / didn’t argued
E) will have been / hadn’t argued
34. I _______ it unless he _______ me a good reason.
A) wouldn’t accept/had given
B) won’t accept/gives
C) won’t be accepting/give
D) wouldn’t have accepted/gave
E) accepted/will give
35. If you … so much money, I … angry.
A) didn’t spent/wouldn’t have be
B) hadn’t spent/wouldn’t have been
C) won’t spend/wouldn’t be
D) hadn’t spent/will be
E) hasn’t spent/wouldn’t have be
36. The first inhabitants of the USA were ______.
A) Dutch and Indians
B) Indians and Eskimos
C) Africans
D) Indians
E) Indians and Englishmen
37. The USA is ______, a union of 50 states.
A) Republic
B) A presidential republic
C) A constitutional monarchy
D) A federal republic
E) A constitutional republic
38. The Statue of Liberty was then carefully _____ and ______ .
A) Lifted on the pedestal / sold
B) Taken apart / shipped to America
C) Planed to the Bedloe’s (now, Liberty) Island
D) Lifted and broken
E) Shown and sold
39. What is the national emblem of England?
A) Shamrock
B) Tulip
C) Maple leaf
D) Rose
E) Violet
40. Buckingham Palace has _____ rooms.
A) 650
B) 200
C) 350
D) 600
E) 500
41. The Northern part of Scotland is called ______.
A) the Gardens
B) the Lowlands
C) the Desert
D) the Highlands
E) the Lakeland
42. What is the nickname of New York?
A) The Big Manhattan.
B) The Big Indianapolis.
C) The Big Apple.
D) The Big Peach.
E) The Big York.
43. The Whispering Gallery is remarkable for its … .
A) illumination
B) acoustics
C) size
D) entertainment
E) exotic
44. The tallest sight in Washington, D.C., is … .
A) The White House
B) Renwick Gallery
C) The Statue of Liberty
D) The National Mall
E) U.S. Capitol
45. The Queen’s Residence in London is in … .
A) Westminster Abbey
B) St Paul’s Cathedral
C) Buckingham Palace
D) Tower of London
E) The White Palace
46. The political system of the U.S. consists of … branches.
A) two
B) three
C) four
D) six
E) seven
47. A “jack” is an old name for … .
A) tower
B) country
C) flag
D) sailor
E) worker
48. St. Paul Cathedral was built by the greatest architect _____.
A) Benjamin Britten
B) Din Reed
C) Columbus
D) Christopher Wren
E) Big Ben
49. Put verbs in the correct form in the Passive:
“ … anybody … in the accident?” “Yes, two people … … to hospital.”
A) Were… injured, were taken
B) Was… injured, was taken
C) Was… taken, was injured
D) Was …injured, were taken
E) Has …injured, were taken
50. Put the verb in the correct form in the Passive:
Butter … … from milk
A) are made
B) is make
C) is made
D) were made
E) been made