#include <iostream.h>
#include <conio.h>
class num
{
public:
int large(int,int);
};
void main()
{
clrscr();
int a=10,b=5;
num no;
cout<<"\nLarger no. : "<<no.large(a,b);
getch();
}
int num :: large(int a,int b)
{
if(a>b)
return a;
else
return b;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.