Tak jak w załączniku, trzeba napisać program w C++ wyświetlający literę A z literek "A".
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int iDM;
cout << "A ma byc duze czy male?" << endl
<< "1 - duze" << endl
<< "2 - male";
cin >> iDM;
if( iDM == 1)
cout << " A " << endl
<< " A A " << endl
<< " A A" << endl
<< " AAAAAAA" << endl
<< "A A" << endl;
}
if(iDM == 2)
cout << "aaaa" << endl
<< "a a" << endl
<< "aaaaa" << endl;
getch();
return 0;
" 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 <conio.h>
using namespace std;
int main()
{
int iDM;
cout << "A ma byc duze czy male?" << endl
<< "1 - duze" << endl
<< "2 - male";
cin >> iDM;
if( iDM == 1)
{
cout << " A " << endl
<< " A A " << endl
<< " A A" << endl
<< " AAAAAAA" << endl
<< " A A " << endl
<< "A A" << endl;
}
if(iDM == 2)
{
cout << "aaaa" << endl
<< "a a" << endl
<< "a a" << endl
<< "aaaaa" << endl;
}
getch();
return 0;
}