Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
всего цветов: 7цветов
значит 7*3=21
#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; }
program xxx;
var i, m, p, n : integer;
t : array[1..31] of real;
begin
writeln('введите температуру ')
for i: =1 to 31 do
readln(t[i]);
m: =0; p: =0; n: =0;
if t[i]< 0 then m: =m+1;
if t[i]> 0 then p: =p+1;
if t[i]=0 then n: =n+1
end;
writeln('дней с отрицательной температурой было - ', m);
writeln('дней с положительной температурой было - ', р);
writeln('дней с нулевой температурой было - ', n);
readln
end.
двоичная (10000), восьмеричная (20), шестнадцатеричная (10)
Популярные вопросы