у меня знак & не ставится, но он выполняет свои действия, у себя его ставьте!
Спасибо
Ответ дал: Гость
var c,a,b,i,j,l: integer; begin cls;
write('введите через пробел отрезок'); read(a,b); for i: =a to b+1 do begin j: =2; l: =round(sqrt(i)); while (i mod j < > 0) and (j < = l) do begin inc(j); end; if (j > l) then begin write(c,' '); c: =i; end; end; end.
Ответ дал: Гость
#include < iostream> #include < vector> #include< windows.h> using namespace std; char bufrus[256]; char* rus(const char* text) { chartooem(text, bufrus); return bufrus; }int main(){ vector< int> m; //объявили динамический массивint n,count,sum; count=sum=0; cout< < rus("введите количество элементов массива: ");
Популярные вопросы