C++ en büyük sayıyı bulan program
#include <iostream>
using namespace std;
int main()
{
int s1, s2, s3;
cout << "1. sayiyi giriniz: ";
cin >> s1;
cout << '\n';
cout << "2. sayiyi giriniz: ";
cin >> s2;
cout << '\n';
cout << "3. sayiyi giriniz: ";
cin >> s3;
cout << endl;
if (s1 > s2){
if (s1 > s3){
cout << "en buyuk sayi: " << s1;
}
else{
cout << "en buyuk sayi: " << s3;
}
} else{
if (s2 > s3){
cout << "en buyuk sayi: " << s2;
}
else{
cout << "en buyuk sayi: " << s3;
}
}
return 0;
}