Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
program p; uses crt,graph; var d,m: integer; beginclrscr; initgraph(d,m,''); setcolor(green) ; line(200,420,300,420); line(300,420,250,330); line(250,330,200,420); line(200,330,300,330); line(300,330,250,240); line(250,240,200,330); line(200,240,300,240); line(300,240,250,140); line(250,140,200,240); readkey; end.
include < iostream>
using namespace std;
int main()
{int n;
cin > > n;
switch(n)
{case 1: cout< < "i"; break;
case 5: cout< < "v"; break;
case 10: cout< < "x"; break;
case 50: cout< < "l"; break;
case 100: cout< < "c"; break;
case 500: cout< < "d"; break;
case 1000: cout< < "m"; break;
}
return 0;
решаем относительно a: a=(-6*x2-c)/x4=-6*x2/x4-c/x4
var a: array [1..10] of integer;
min,max,i,c,b: integer;
begin
read(c,b);
randomize;
for i : = 1 to 10 do
a[i]: = random(b) -c+1;
min: =1;
max: =1;
for i: = 1 to 10 do
if a[min]> a[i] then min: =i;
if a[max]< a[i] then max: =i;
end;
writeln(a[min], a[max]);
end.
Популярные вопросы