srand(time(0));
const int size = 10;
double A[size]{};
int index = 0;
cout << "Enter 10 digits" << endl;
for (size_t i = 0; i < size; i++)
{
int tmp;
cout << endl;
for (size_t i = 0; i < size; i++)
{
cout << endl;
cout << "Int digits - " << index << endl;
system("pause");
const int size = 10;
double A[size]{};
int index = 0;
cout << "Enter 10 digits" << endl;
for (size_t i = 0; i < size; i++)
{
cin >> A[i];}
int tmp;
cout << endl;
for (size_t i = 0; i < size; i++)
{
tmp = A[i];}
if (A[i] == tmp)
{
index++;}
cout << tmp << endl;
cout << endl;
cout << "Int digits - " << index << endl;
system("pause");
Комментариев нет:
Отправить комментарий