Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
vara,b: integer; c: real; beginwriteln ('1'); read (a); writeln ('2'); read (b); c: =(a/1)/(1/b); writeln (c); 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;
}
type
person=record
fam: string;
imya: string;
day: integer;
end;
var
a: array[1..50] of person;
i,n,z: integer;
begin
write('n='); readln(n);
for i: =1 to n do
write('fam-'); readln(a[i].fam);
write('imya-'); readln(a[i].imya);
write('day-'); readln(a[i].day);
write('z-'); readln(z);
if a[i].day=z then writeln (a[i].fam, ' ',a[i].imya);
readln;
end.
десятичная двоичная восьмеричная шестнадцатиричная
1)
10 1010 12 a
18 10010 22 12
322 101000010 502 142
2)
10 1010
74 112
92 5c
числа снизу обозначают систему счисления
Популярные вопросы