#include<iostream> using namespace std; template<class t> class check{ public: int a,b; void sqcheck(int a,int b){ cout<<"Enter two values\n"; cin>>a>>b; if(a==b){ cout<<"It is square"<<endl; } else{ cout<<"It is a rectangle\n"; } } }; int main(){ check<int>c; int a,b; c.sqcheck(a,b); return 0; }