formula resolvente c

Solutions on MaxInterview for formula resolvente c by the best coders in the world

showing results for - "formula resolvente c"
Dennis
06 Jun 2016
1#include <stdio.h>
2#include <stdlib.h>
3#include <math.h>
4
5int main(int argc, char *argv[])
6{
7   int a,b,;
8   float total,total1;
9
10   printf("Calculo da raiz quadrada de uma equacao do segundo Grau");
11   printf("\n\n");
12   printf("Introduza tres valores para calcular");
13   scanf("%d %d %d",&a,&b,&c);
14   printf("Os numeros introduzidos sao %d %d %d\n",a,b,c);
15
16
17 	   total=(-b+sqrt(b*b)-(4*a*c))/(2*a);/* Função matemática para a formula resolvente*/
18 	   total1=(-b-sqrt(b*b)-(4*a*c))/(2*a);
19
20
21 printf("total 1 %d\n",total);
22 	 printf("total 2 %d\n",total1);
23 	 system("PAUSE");	
24 return 0;
25}
similar questions
queries leading to this page
formula resolvente c