Datoteka:
 



#include 
template 
t sestej(t x,t y,t z)
    {
        t max;
        max=x;
        if (y>max)
            max=y;
        if (z>max)
            max=y;
    return (max);
    }

main()
    {
        int a;
        int b;
        int c;
        float d,e,f;
        cout<<"\n Vnesi a = ";
        cin>>a;
        cout<<"\n Vnesi b = ";
        cin>>b;
        cout<<"\n Vnesi c = ";
        cin>>c;
        cout<<" Najvecji int je = "<<sestej(a,b,c);
        cout<<"\n Vnesi d = ";
        cin>>d;
        cout<<"\n Vnesi e = ";
        cin>>e;
        cout<<"\n Vnesi f = ";
        cin>>f;
        cout<<"\n Najvecji je (float) = "<<sestej(d,e,f);
 return 0;
 }



Avtor: Tomaž Kovačič


V kolikor želite sodelovati z nami, vas vljudno vabimo, da se nam pridružite, pošljete članke, ali pa samo izrazite vaša mnenja.