Вопрос школьника по предмету Информатика
Срочно очень надо срочно пожалуйста помогите
Решить задачи:
1.»С клавиатуры вводим гипотенузу и катет. Найти второй катет»
2.»Вычислить стоимость покупки со скидкой: общая цена покупки А руб., скидка С %»
Ответ учителя по предмету Информатика
Ответ:
Ниже
Объяснение:
1.
program qq;
var a, b, c: float;
begin
read(c, b)
a := sqrt(sqr(c) — sqr(b))
writeln(a)
end.
2.
program qq;
var a, b, c: float;
read(a, b)
b := b/100
c := a * (1 — b)
writeln(c)
end.
Вроде так, не суди строго, на паскале года 1.5 ничего не делал.
Похожие вопросы от пользователей
1. The USA geography
• in North America
• its neighbours
• extend from … to …
• many kinds of land
• nearly every kind of weather
• the longest river
• the higest mountains
• a lot of open space
2. The country and its capital
• 50 states
• some are big and some are small
• the capital city
• on the banks of the Potomac River
• doesn’t belong to any state
• the US government and Congress
• the largest city
• more than 300 million people
ПОМОГИТЕ ПОЖАЛУЙСТА