#include <iostream>
using namespace std;
int main()
{
int a;
while (1)
cout << "1 - wypisz liczby nieparzyste od 54 do 4";
cout << "\n2 - narysuj linie ze znakow";
cout << "\n3 - wyjdz\n";
cin >> a;
switch (a)
case 1:
for (int i = 53; i >= 4; i -= 2)
cout << i << " ";
}
cout << endl;
break;
case 2:
char c;
int b;
cout << "Podaj znak: ";
cin >> c;
cout << "\nPodaj liczbe znakow: ";
cin >> b;
for (int i = 0; i < b; i++)
cout << c;
case 3:
return 0;
default:
cout << "Podales zla liczbe!";
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
#include <iostream>
using namespace std;
int main()
{
int a;
while (1)
{
cout << "1 - wypisz liczby nieparzyste od 54 do 4";
cout << "\n2 - narysuj linie ze znakow";
cout << "\n3 - wyjdz\n";
cin >> a;
switch (a)
{
case 1:
for (int i = 53; i >= 4; i -= 2)
{
cout << i << " ";
}
cout << endl;
break;
case 2:
char c;
int b;
cout << "Podaj znak: ";
cin >> c;
cout << "\nPodaj liczbe znakow: ";
cin >> b;
for (int i = 0; i < b; i++)
{
cout << c;
}
cout << endl;
break;
case 3:
return 0;
default:
cout << "Podales zla liczbe!";
break;
}
}
}