program z1; uses crt; var n: integer; i: integer; begin write(' введите n : '); readln(n); for i : = 1 to n do begin writeln(' число: ',i,' степень: ', i *i); end; end.
си
откомпилирован: (dev cpp)
#include < stdio.h> #include < stdlib.h> #include < conio.h> #include < math.h> int main(){ int n = 0; printf("\n vvedite n: "); scanf("%d", & n); printf("\n chislo | stepen"); for(int i = 1; i < n; i++) { printf("\n %5d |%5d ", i, i * i); } getch( ); return 0; }
Ответ дал: Гость
1)10см=3,937дюма
dpi - точек на дюйм
3,937*1000=3937 - точек
3937*3937=15499969 точек
каждая точка кодируется 2-мя байтами
всего 30999938 байт
1 мегабайт = 1024*1024=1048576
на картинку 29,56 мегабайта
2) 256 1 байт
200*100=20000 пикселей
1 килобайт = 1024 байта
картинка займет 20000/1024=19,5 килобайта
ps а вообще, каждое нужно писать отдельно
Ответ дал: Гость
var a: integer; c1, c2, c3, c4: integer;
begin for a : = 1000 to 9999 do begin c1 : = a div 1000; c2 : = (a div 100) mod 10; c3 : = (a div 10) mod 10; c4 : = a mod 10; if (c1 < > c2) and (c1 < > c3) and (c1 < > c4) and (c2 < > c3) and (c2 < > c4) and (c3 < > c4) then writeln(a); end; end.
Популярные вопросы