1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifdef __MSDOS__
    #include <iostream.h>
    #include <stdlib.h>
#else
    #include <iostream>
    #include <cstdlib>
    using namespace std;
#endif

int main (void)
{
    float a, b, c, mayor;
    cout << "Ingresa el valor de a: ";
    cin >> a;
    cin.get();
    cout << "Ingresa el valor de b: ";
    cin >> b;
    cin.get();
    cout << "Ingresa el valor de c: ";
    cin >> c;
    cin.get();
    mayor=a;
    if(mayor<b)
        mayor=b;
    if(mayor<c)
        mayor=c;
    cout << "Valor de mayor: " << mayor << endl;
    cout << endl;
    system ("pause");
    return EXIT_SUCCESS;
}