#include <iostream.h>
    template <class Typ> // deklaracja funkcji szablonowej
    Typ max( Typ par1 , Typ par2 ) 
    {
   	if(par1>par2)		return par1;
	else 		        return par2;
    }

int main() 
{
  int a;
  int b;
  cout<<"Podaj a: "; cin>>a;
  cout<<"Podaj b: "; cin>>b;
  int c = max<int>( a , b );
  cout<<c<<endl;
  float d = 3;
  float e = 4;
  float f = max<float>( d , e );
  cout<<f<<endl;
  system("pause");
  return 0;
}