1. uses CRT,Graph;
  2.  
  3. type Point=record
  4. x:real;
  5. y:real;
  6. end;
  7.  
  8. var input:text;
  9. D:array[-25..25] of Point;
  10. i:longint;
  11. a,b,c:real;
  12. temp1,temp2:integer;
  13.  
  14.  
  15.  
  16. procedure InputData;
  17. begin
  18. assign(input,'INPUT.TXT');
  19. reset(input);
  20.  
  21. // Ввод коэффициентов
  22. read(input,a,b,c);
  23.  
  24. close(input);
  25. end;
  26.  
  27.  
  28.  
  29. procedure DrawCoords;
  30. begin
  31. SetColor(White);
  32.  
  33. // Прямая OX
  34. line(80,180,320,180);
  35. line(320,180,310,170);
  36. line(320,180,310,190);
  37.  
  38. // Прямая OY
  39. line(200,60,200,300);
  40. line(200,60,210,70);
  41. line(200,60,190,70);
  42. end;
  43.  
  44.  
  45.  
  46. procedure DrawGraph;
  47. begin
  48. SetColor(14);
  49.  
  50. for i:=-23 to 24 do
  51. Line(trunc(D[i-1].x),trunc(D[i-1].y),trunc(D[i].x),trunc(D[i].y));
  52. end;
  53.  
  54.  
  55.  
  56. begin
  57. ClrScr;
  58.  
  59. temp1:=detect; temp2:=1;
  60. InitGraph(temp1,temp2,'C:\FPC\2.4.2\bin');
  61.  
  62. InputData;
  63. for i:=-24 to 24 do
  64. begin
  65. D[i].x:=200+i*5;
  66. D[i].y:=180-(sqr(i)*a+i*b+c)*5;
  67. end;
  68.  
  69. DrawCoords; DrawGraph;
  70.  
  71. readln;
  72. end.
  73.