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

Знание и понимание
1. Какой оператор используется для программирования алгоритмов ветв-
ления в языке С++?
2. Перечислите структуру полного условного оператора.
3. Перечислите структуру неполного условного оператора.
4. Какие операции равенства и отношения записывают в логических выра-
жениях C++?
5. Какие синтаксические правила нужно соблюдать для записи условного
оператора?
6. Как выполняется структура условного оператора?

Ответы

Автор ответа: arstkach1
32

Ответ:

1. условные операторы «if» и «else»

2. Если [условие] То [оператор 1]

Иначе [оператор 2];

3. Если [условие] То [оператор];

4. == для равенства, >= "больше", <= "меньше", != для неравенства. Иногда вместо != ставят <>

5. if условие then действие else действие;

6. Условный оператор состоит из трёх слов IF ELSE THEN. Здесь <условие> просто помещает значение на вершину стека, IF анализирует флаг, и если: он не равен нулю, то выполняются выражения до ELSE или THEN ; если он равен нулю, то выполняется выражения между ELSE и THEN.

Похожие вопросы
Предмет: Английский язык, автор: batareika7
Read the text and say:Are these sentences true(T), false(F) or is there no information(NI) in the text.
1.In England spring starts in February.
2.In England the grass is always green.
3.The sea in England is always warm.
4.The English like to swim in the sea.
5.Jessie likes Christmas trees.
6.Jessie's favourite tree is the magnolia.
7.In England there's usually a lot of snow on Christmas Day.
8.English weather is quite warm.
Hi,friends.My name's Jessie.I live in Suffolk.I think it's the sunniest county in England.
Right now spring in nearly over.I like these lonh days.You can do so much.The sky is blue, the trees are green.The birds are singing.In England spring stars in February.I particularly like the early spring. There are flowers everywhere. The parks and gardens are so colourful, with white and yellow daffodils and red tulips.
The grass in green all year round, but the trees have new leaves in March and April.My favourite tree is the magnolia.It has flowers before it has leaves.The big white flowers look so beautiful.
Summer is sometimes really warm in Suffolk.It's very sunny and bright, rains is rare.My neighbours grow fantastic roses of all colours:red, pink, white, yellow and even blue!
I love going to the seaside in summer.I take my shoes off and walk in the warm sand.Then I sit down with a book and enjoy the fresh sea air.In july we can even swim in the sea, but usually it's very cold.
Autumn is a beautiful season,too,with the clear sky and red and yellow leaves.But i don't really like late autumn. The days are short and it often rains.
In winter there's usially no snow, but sometimes we have a white Christmas. The temperature rarely goes below zero, but it can be quite cold winh the strong wind and rain.
Предмет: Литература, автор: danelipavlov