ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Formula Cuadratica


Enviado por   •  7 de Noviembre de 2012  •  899 Palabras (4 Páginas)  •  283 Visitas

Página 1 de 4

#include <iostream>

#include <math.h>

using namespace std;

int main ()

{

float a,b,c;

system("color 5f");

cout<<"\n\n\t ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»";

cout<<"\n\t º la ecuacion es de la formas: f(x) = ax^2 + bx + c º";

cout<<"\n\t ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ";

while (true)

{

cout <<"\n\t Ingrese el valor de a: ";

if (scanf ("%f", &a))

{

break;

}

fflush (stdin);

printf ("\n\t Digito una letra...");

printf ("\n\t Ingrese un NUMERO POR FAVOR...\n\t ");

system ("PAUSE");

}

while (true)

{

cout <<"\t Ingrese el valor de b: ";

if (scanf ("%f", &b))

{

break;

}

fflush (stdin);

printf ("\n\t Digito una letra...");

printf ("\n\t Ingrese un NUMERO POR FAVOR...\n\t ");

system ("PAUSE");

}

while (true)

{

cout <<"\t Ingrese el valor de c: ";

if (scanf ("%f", &c))

{

break;

}

fflush (stdin);

printf ("\n\t Digito una letra...");

printf ("\n\t Ingrese un NUMERO POR FAVOR...\n\t ");

system ("PAUSE");

...

Descargar como (para miembros actualizados)  txt (3 Kb)  
Leer 3 páginas más »
Disponible sólo en Clubensayos.com