" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include<iostream>
#include<windows.h>
using namespace std;
int main()
{
system("chcp 1250");system("cls");
bool g;
cout<<"\n\nPodaj płeć (0 - mężczyzna, 1 - kobieta): ";
cin>>g;
if (g==1)
{
cout << "Podano płeć: "<<char(34)<<"Kobieta"<<char(34)<<".";
}
if(g==0)
{
cout << "Podano płeć: "<<char(34)<<"Mężczyzna"<<char(34)<<".";
}
cout<<endl<<endl;
return 0;
}
using namespace std;
int main()
{
bool plec;
cin >> plec;
if (plec)
{
cout << "Kobieta";
}
else
{
cout << "Mezczyzna";
}
return 0;
}