#include <iostream>
using namespace std;
int test(int a, int b, int c) {
return a > (b > c ? b : c) ? a : (b > c ? b : c);
}
int main() {
std::cout << test(3, 4, 5) << std::endl;
return 0;
}
#include <iostream>
int test(int a, int b, int c) {
return std::max(a, std::max(b, c));
}
int main() {
std::cout << test(3, 4, 5) << std::endl;
return 0;
}
#include <iostream>
using namespace std;
int test(int a, int b, int c) {
return a > (b > c ? b : c) ? a : (b > c ? b : c);
}
int main() {
std::cout << test(3, 4, 5) << std::endl;
return 0;
}
#include <iostream>
int test(int a, int b, int c) {
return std::max(a, std::max(b, c));
}
int main() {
std::cout << test(3, 4, 5) << std::endl;
return 0;
}
Operatörünü çok seviyorsunuz, buyurun.
Kod:#include <iostream> using namespace std; int test(int a, int b, int c) { return a > (b > c ? b : c) ? a : (b > c ? b : c); } int main() { std::cout << test(3, 4, 5) << std::endl; return 0; }
Kod:#include <iostream> int test(int a, int b, int c) { return std::max(a, std::max(b, c)); } int main() { std::cout << test(3, 4, 5) << std::endl; return 0; }
Operatörünü çok seviyorsunuz, buyurun.
Kod:#include <iostream> using namespace std; int test(int a, int b, int c) { return a > (b > c ? b : c) ? a : (b > c ? b : c); } int main() { std::cout << test(3, 4, 5) << std::endl; return 0; }
Kod:#include <iostream> int test(int a, int b, int c) { return std::max(a, std::max(b, c)); } int main() { std::cout << test(3, 4, 5) << std::endl; return 0; }
max(a, std::max(b, c))
Bu sitenin çalışmasını sağlamak için gerekli çerezleri ve deneyiminizi iyileştirmek için isteğe bağlı çerezleri kullanıyoruz.