Birlikte RealityCheatsi yönetebilecek ekip arkadaşları arıyoruz — fikirlerin, tecrübelerin,merakın ve enerjinle katkıda bulunmak istersen seni bekliyoruz!
#include <stdio.h>
int main() {
#ifdef _WIN32
printf("Windows Adlı İşletim Sistemini Kullanıyorsunuz.");
#endif
#ifdef linux
printf("Linux Adlı İşletim Sistemini Kullanıyorsunuz.");
#endif
return 0;
}
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL,"Turkish"); //Türkçe karakter
int sayi;
cout<<"Sayıyı Girin : ";
cin>>sayi;
if(sayi%3==0 && sayi%5==0)
{
cout<<"Girilen sayı 3' e ve 5'e tam bölünüyor.";
}
else
{
cout<<"Girilen sayı...
#include
using namespace std;
int main()
{
int a, b;
cout << "a ve b icin degerler giriniz : ";
cin >> a >> b;
if ( a>b )
{
cout << "a, b'den buyuk" << endl;
}
else if ( b>a )
{
cout << "b, a'dan buyuk" << endl;
}
else
{
cout << "a ve b birbirine esit" << endl;
}
return 0;
}
1-100 arası çift sayıları listeleyen C++ Örneği:
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL,"Turkish"); //Türkçe karakter
for(int i=1;i<=100;i++)
{
if(i%2==0)
{
cout<<i<<endl;
}
}
}
Beğendim1
Alıntıdır
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.