<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> Insert title here <% float a = Float.parseFloat(request.getParameter("a")); float b = Float.parseFloat(request.getParameter("b")); float c = Float.parseFloat(request.getParameter("c")); float d; double s; d = b*b-4*a*c; if(d<0){ %>

Pas de solutions réelles

<% }else{ if(d>0){ %>

solutions

<%=((-b)+(Math.sqrt(d)))/(2*a)%> <%=((-b)-(Math.sqrt(d)))/(2*a)%> <% }else{ s = (-b)/(2*a); %>

solution

<%=s%> <% } } %>