Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
662 B
4
Indexable
#include <iostream>

using namespace std;

int main()
{

	int min ,max;

	cout << "Podaj poczatek zakresu (0-128) \n";
	cin >> min;

	cout << "Podaj koniec zakresu (0-128) \n";
	cin >> max;


	while (min < 0 || min>128 || max < 0 || max>128)
	{
		cout << "musisz podac liczbe z zakresu \n";

		cout << "\n";

		cout << "Podaj początek zakresu (0-128) \n";
		cin >> min;

		cout << "Podaj koniec zakresu (0-128) \n";
		cin >> max;

	}

	cout << "znaki ASCII od " << min << " do " << max << '\n';

	for (int i = min; i <= max; i++)
	{
		cout << " wartosc ASCII " << i << "znak " << static_cast<char>(i) << " \n";
	}


  
}
Leave a Comment