Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Analisis Matematico
Analisis Matematico
void main()
{
float N1, N2;
float S;
cout << "ingrese un primer numero", cin >> N1;
cout << "ingrese un segundo numero", cin >> N2;
S = N1 + N2;
cout << "la suma es" << S << endl;
if (N1 < N2)
cout << " el numero menor es " << N1 << endl;
else
cout << " el numero menor es " << N2 << endl;
system("pause");
}
void main()
{
float N1, N2;
float S;
cout << "ingrese un primer numero", cin >> N1;
cout << "ingrese un segundo numero", cin >> N2;
S = N1 + N2;
cout << "la suma es" << S << endl;
if (N1 == N2)
cout << " los numeros son iguales " << N1 << endl;
else
if (N1<N2)
cout << " el numero menor es " << N1 << endl;
else
cout << " el numero menor es " << N2 << endl;
system("pause");
}
void main()
{
float N1, N2;
float S;
while (N1 != 0)
{
cout << "ingrese un primer numero", cin >> N1;
if (N1 != 0)
{
cout << "ingrese un segundo numero", cin >> N2;
S = N1 + N2;
cout << "la suma es" << S << endl;
if (N1 == N2)
cout << " los numeros son iguales " << N1 << endl;
else
if (N1<N2)
cout << " el numero menor es " << N1 << endl;
else
cout << " el numero menor es " << N2 << endl;
system("pause");
}
}
}