vsnimschikov391
?>

Suppose we told you there can be quite a pill you might take to really lose weight? well, we found one, and we wish to let you know a little more about it. if it actually does all that it says, you’re going to want to know more, it’s called shape x2 keto , and we understand what it’s want to in contrast to what you see whenever you try the mirror, and we believe that nobody needs to have to undergo that. that’s why we’re here today. we want to make sure you’re getting what you expect, even though there’s a good chance that you’ve already heard about shape x2 keto pills.

Информатика

Ответы

petrosyan35
Const   n=5; // количество чисед var   i,k: integer;   s: longint;   m,d,dc: real;   a: array[1..n] of longint;   fin,fout: text; // файловые переменные для ввода/вывода   begin   assign(fin,'input.txt'); reset(fin); // файл готов к чтению   s: =0;   for i: =1 to n do       if not eof(fin) then begin           read(fin,a[i]);           s: =s+a[i]           end       else begin           writeln('во входном файле недостаточно данных');           close(fin);           exit           end;   close(fin);   m: =s/n;   d: =abs(a[1]-m); k: =1;   for i: =2 to n do begin       dc: =abs(a[i]-m);       if dc< d then begin           k: =i; d: =dc           end       end;   assign(fout,'output.txt'); rewrite(fout); // файл готов к записи   writeln(fout,a[k]);   close(fout) end.
vitalina3012
1) #include < iostream> #include < conio.h> #include < string> using namespace std; int main() { string str; getline(cin, str); for (int i = 1; i < str.length(); i++) { if (i % 3 == 0) {cout < < str[i] < < endl; } } _getch(); return 0; } 2) #include < iostream> #include < conio.h> #include < string> using namespace std; int main() { string str; getline(cin, str); for (int i = 1; i < str.length(); i++) {   if (i % 2 == 0)   { if (str[i] ! = 'a')   { str[i] = 'a'; }   if (str[i] ! = 'b')   { str[i] = 'b'; }   if (str[i] ! = 'c')   { str[i] = 'c'; } } } cout < < str < < endl; _getch(); return 0; }

Ответить на вопрос

Поделитесь своими знаниями, ответьте на вопрос:

Suppose we told you there can be quite a pill you might take to really lose weight? well, we found one, and we wish to let you know a little more about it. if it actually does all that it says, you’re going to want to know more, it’s called shape x2 keto , and we understand what it’s want to in contrast to what you see whenever you try the mirror, and we believe that nobody needs to have to undergo that. that’s why we’re here today. we want to make sure you’re getting what you expect, even though there’s a good chance that you’ve already heard about shape x2 keto pills.
Ваше имя (никнейм)*
Email*
Комментарий*

Популярные вопросы в разделе

margarita25061961
natkuv7
О. Карпов1691
Sharmel26
fruktovahere
tanysha1990
ВладимировичСтанислав
vasilevam
Смирнов_Андрей691
purchase
info6
Ladyby6224
goodsled
Bondarev_Ayupova795
Маринина_Елена