#include <iostream>
using namespace std;
class Number {
private:
int a,b,c;
public:
Number(int aa ,int bb,int cc){
a = aa;
b = bb;
c = cc;
};
void maxValue(){
if (a == b && b == c) {
cout <<"모두 같다"<<endl;
}else{
int maxNum = a;
if (b > maxNum) maxNum = b;
if (c > maxNum) maxNum = c;
cout << maxNum <<endl;
}
}
};
int main() {
Number number(90,80,70);
number.maxValue();
}
To embed this project on your website, copy the following code and paste it into your website's HTML: