#include "iostream"
using namespace std;
int main()
{
float firstArray[3]={1, 5, 6}, secondArray[4];
cout<<"First Array: ";
for(int i=0; i<3; i++)
{
secondArray[i]=firstArray[i];
cout<<firstArray[i]<<"\t";
}
cout<<endl<<"Second Array: ";
secondArray[3]=7;
for(int i=0; i<4; i++)
cout<<secondArray[i]<<"\t";
cout<<endl;
return 0;
}
Ответ:
#include <iostream>
using namespace std;
int main()
{
int а; int b;
cout << "enter the first integer number: ";
cin >> a;
cout << "enter the second integer number: ";
cin >> b;
if(a<b || a=b) a=0;
cout << "a=" << a<< "\n"<<"b="<<b<<"\n";
system("pause");
return 0;
}
Наименования удобно расчислять по буквам алфавита. Также имеется возможность использовать числа.
1. 32 кбайт=32*1024 байт=32*1024*8 бит.
Время передачи со скоростью 2048 бит/сек: 32*1024*8:2048=128 сек.
2. Размер файла для передачи по каналу 512 бит/сек за время 128 сек.: 512*128=65536 бит. 65536 бит=65536/8 байт=(65536/8)/1024 кбайт=8 килобайт.
Ответ: 8