package ru.matevosyan.lesson_4_Loops;

public class Square{

	private float a;
	private float b;
	private float c;
	
	public Square (float a, float b, float c) {
		
	this.a = a;
	this.b = b;
	this.c = c;	
		
	}

	public  float calculate(int x) {
	
		return (float)(a*Math.pow(x,2)) + (b * x) + c;
	
	}

	public void show(int start, int finish, int step) {
		
		Square s = new Square(1f,2f,3f);

		while(start < finish) {

			System.out.println(s.calculate(start));
			start += step;

		}

	}

}
@@ -258,16 +258,21 @@
 (float)(
+this.
 a*Math.p
@@ -283,16 +283,21 @@
 ,2)) + (
+this.
 b * x) +
@@ -297,16 +297,21 @@
  * x) + 
+this.
 c;%0A%09%0A%09%7D%0A
@@ -371,44 +371,8 @@
 %0A%09%09%0A
-%09%09Square s = new Square(1f,2f,3f);%0A%0A
 %09%09wh
@@ -394,16 +394,16 @@
 ish) %7B%0A%0A
-
 %09%09%09Syste
@@ -416,16 +416,19 @@
 println(
+thi
 s.calcul

add Square.java