№1.
1)101112 = 1∙24+0∙23+1∙22+1∙21+1∙20 = 16+0+4+2+1 = 2310
2)11001112 =1∙26+1∙25+0∙24+0∙23+1∙22+1∙21+1∙20 = 64+32+0+0+4+2+1 = 10310
3)10010002 =1∙26+0∙25+0∙24+1∙23+0∙22+0∙21+0∙20 = 64+0+0+8+0+0+0 = 7210
№2.
-
#include<iostream>
using namespace std;
int main()
{
int N,max;
cin >> N;
max = N % 10;
do
{
N = N / 10;
if (N % 10 > max) max = N % 10;
}
while (N != 0);
cout << max;
do
{
std::cin.get();
}
while (true);
}
Ответ:ответ в объяснении)
Объяснение:
float:606,3;36,8
int:1001;35
bool:TRUE;FALSE
str:"Z";"Students"