Tek - Çift Programı

1

1Jeff

Developer & Coder
Ultra Member
Joined
Oct 20, 2019
Messages
725
Reaction score
446
Location
Helsinki
Arkadaşlar bundan bir kaç hafta önce yaptığım tek çift programını sizlerle paylaşmak istedim.^^

Kod:


#include <iostream>

using namespace std;

int main()
{

int sayi;

cout << "Börke'nin Tek - Cift Bulma Programina Hosgeldiniz.\n\n***********************";
cout << "\nSayiyi Giriniz : ";
cin >> sayi;

if(sayi%2 == 0)
{
cout << "Girdiginiz \"" <<sayi<< "\"degiskeni cifttir.";
}
else
{
cout << "Girdiginiz \"" <<sayi<<"\"degiskeni tektir.";
}




}
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Tema düzenleyici

Top Bottom