Program a 2 var 2 b a 1

  • Slides: 25
Download presentation

Исправьте ошибки в программе: Program a 2; var 2 b, a 1: integer; Begin

Исправьте ошибки в программе: Program a 2; var 2 b, a 1: integer; Begin 2 b: =a 1+5; a 1: =2 b: 2; write(2 b, a 1) End

a: =3; b: =2; d: =a*a-sqr(b))+10; d: = ? d: =3

a: =3; b: =2; d: =a*a-sqr(b))+10; d: = ? d: =3

x: =16; y: =9; d: =1 -(sqrt(x)-y)/sqrt(y)*3; d: = ? d: =6

x: =16; y: =9; d: =1 -(sqrt(x)-y)/sqrt(y)*3; d: = ? d: =6

If a>b then d: =a else d: =b; d: =d*10; a: =3; b: =1;

If a>b then d: =a else d: =b; d: =d*10; a: =3; b: =1; d: = 0; d= ? d: =30

If a>b then d: =a else d: =b; d: =d*10; a: =1; b: =3;

If a>b then d: =a else d: =b; d: =d*10; a: =1; b: =3; d: = 0; d= ? d: =30

If a>b then d: =b; d: =d*10; a: =1; b: =3; d: = 0;

If a>b then d: =b; d: =d*10; a: =1; b: =3; d: = 0; d= ? d: = 0

If a>b then else begin d: =b; d: =d+a; end; d: =d*10; a: =1;

If a>b then else begin d: =b; d: =d+a; end; d: =d*10; a: =1; b: =3; d: = 0; d= ? d: = 40

If a>b then else begin d: =b; d: =d+a; end; d: =d*10; a: =3;

If a>b then else begin d: =b; d: =d+a; end; d: =d*10; a: =3; b: =1; d: = 0; d= ? d: = 0

If a>2 then d: =2 else if b>2 then d: =1; d: =d*10; a:

If a>2 then d: =2 else if b>2 then d: =1; d: =d*10; a: =1; b: =3; d: = 0; d= ? d: = 10