You are on page 1of 1

#include <iostream>

#include <ctime>
using namespace std;

int main()
{
setlocale(LC_ALL, "RUS");
char a, b; // ввод символа
cout << "Please, enter limit 1 = "; cin >> a;
int A; A = sizeof(a)*8;
int B; B = sizeof(b)*8;
if (A ==8 && B==8)
{int j = a;
cout << "Please, enter limit 2 = "; cin >> b;
int i = b;
srand(time(0));
int S; S = rand() % (i - j + 1) + j;
char V = S;
cout << V << endl;
system("pause");
} else
{
cout << "Eror\n";
system("pause");
}}

You might also like