fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int sayi;
  6. cout << "Bir sayı girin: ";
  7. cin >> sayi;
  8.  
  9. if (sayi % 2 == 0) {
  10. cout << "Bu bir çift sayıdır." << endl;
  11. } else {
  12. cout << "Bu bir tek sayıdır." << endl;
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Bir sayı girin: Bu bir tek sayıdır.