#include < iostream> /* main program function */ int main() { int imuleven = 1, imulodd = 1, inumber; char cmask = 0; std: : cin > > inumber; if (inumber > 9999 || inumber < 1000) { std: : cout < < "error! input the correct number! " < < std: : endl; return 0; } for (int i = 0; i < 4; i++) { int iend = inumber % 10; if (iend % 2 == 0) imuleven *= iend, cmask |= 1; else imulodd *= iend, cmask |= 2; inumber /= 10; } if (cmask == 3) std: : cout < < static_cast< double> (imuleven) / imulodd < < std: : endl; else if (cmask == 1) std: : cout < < "there is no odd digits exists." < < imuleven < < std: : endl; else std: : cout < < "there is no even digits exists." < < imulodd < < std: : endl; return 0; } /* end of the 'main' function */
Спасибо
Ответ дал: Гость
varn,i: integer; x0,y0,x1,y1,x2,y2,s: real; begin readln(n); s: =0; readln(x0,y0); x1: =x0; y1: =y0; for i: =2 to n do begin readln(x2,y2); s: =s+sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)); x1: =x2; y1: =y2; end; x2: =x0; y2: =y0; s: =s+sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)); writeln(s: 10: 2); end.
Ответ дал: Гость
а) наличие электромагнитного излучения, сrt б) ухудшение качества изображения при изменении угла обзора, crt в) компактные размеры lcd г) достаточно сильное ухудшение качества изображения при изменении рекомендуемой производителем разрешающей способности crt д) формирование изображения с лучей электронных пушек, crt е) меньший вред для здоровья человека при работе. lcd
Популярные вопросы