Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
#include < stdio.h> #include < stdlib.h> #include < conio.h> #include < math.h> int main(){ int x, y; printf("\n vvedite x and y: "); scanf("%d" "%d", & x, & y); if (x < y) printf("\n x = %d, y = %d", (x + y)/2, 2 * x * y); else printf("\n x = %d, y = %d", 2 * x * y, (x + y)/2); printf("\n\n to "); getch( ); return 0; }
на pascal:
program sonik;
uses crt;
var a,b,c: string;
begin
readln (a); readln (b); readln (c);
writeln (' фигуры: ',a,b,c);
end.
а)домащняя библиотека
в виде таблицы
1.номер
2.название
3.автор
4.полка
б)1.номер
2.слово
3.вопрос
4.род
5.число
6.падеж
в)1.номер
2.имя
3.фамилия
4.отчество
5.телефон
6.адрес
7.дата рождения
8.хобби
program xxx;
var i, n, s, k : integer;
a : array [1..20] of integer;
write('введите n=');
readln(n)
writeln('введите элементы массива а: ' );
for i: =1 to n do
readln(a[i]);
s: =0;
k: =0;
if a[i] mod 8 = 0 then begin s: =s+a[i]; k: =1 end;
if k=0 then write ('элементов кратных 8 - нет')
else write('сумма элементов кратных 8 =', s);
readln
Популярные вопросы