Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
144(16) = 1 * 16^2 + 4 * 16^1 + 4 * 16^0 = 324
144(10) = 144(10)(логично вроде)
144(8) = 1 * 8^2 + 4 * 8^1 + 4 * 8^0 = 100
144(6) = 1 * 6^2 + 4 * 6^1 + 4 * 6^0 = 64
самое большое 144(16) и всё!
(144)16 =4*10(0)+4*10(1)+1*10(2) = (144)10;
(144)10 = 4*10(0)+4*10(1)+4*10(2) = (144)10;
(144)8 = 4*8(0)+4*8(1)+1*8(2) = (110)10;
(144)6 = 4*6(0)+4*6(1)+1*6(2) = (68)10;
otvet: samim bolshim evlyaetsya: 144(10) i 144(16);
var
st: array[0..10000]of char; s,s1: string; g,g1,i,j,z: longint; t: char;
begin
z: =0;
readln(s);
readln(s1);
g: =length(s);
g1: =length(s1);
for i: =1 to g do
for j: =1 to g1 do if s[i]=s1[j] then
inc(z);
st[z]: =s[i];
break;
end;
for i: =1 to z-1 do for j: =i+1 to z do if st[i]> st[j] then
t: =st[i];
st[i]: =st[j];
st[j]: =t;
st[z+1]: ='-';
for i: =1 to z do i st[i]< > st[i+1] then write(st[i],' ');
end.
#include < stdio.h>
#include < conio.h>
int main( void )
{
int c, i;
printf("input number: ");
scanf(& c); //амперсант c в скобках
i = (int)(c%10);
c = i*i;
printf("answer: %i", c);
getch();
return 1;
}
Популярные вопросы