uses graphabc;
var
p:array[0..3]of point, t:integer;
procedure lines;
begin
line(100,100,300,300);
line(100,300,300,100);
line(200,100,200,300);
line(100,200,300,200);
end;
begin
p[0].x := 150; p[0].y := 200;
p[1].x := 200; p[1].y := 250;
p[2].x := 250; p[2].y := 200;
p[3].x := 200; p[3].y := 150;
SetBrushColor(clblack);
readln(t);
if t < 0 then
begin
Polygon(p[0],p[1],p[2],p[3]);
lines;
end;
if t > 0 then
begin
circle(200,200,50);
lines;
end;
end.
#include <iostream>
using namespace std;
int main()
{
int a[12] = {}, b = 100;
for(int i = 0; i < 12; i++) {
cout << "Input a[" << i << "]: ";
cin >> a[i];
if ((a[i] % 2 == 1) && (a[i] > 0) && (9 < a[i]) && (a[i] < 100) && (a[i] < b))
b = a[i];
}
if (b == 100) {
cout << "Numbers do not satisfy the condition";
return 1;
}
else cout << "The given number is " << b;
return 0;
}
//Так как Tab'ы временно не сохраняются в редакторе, прилагаю .cpp файл. Язык С++