Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ss
Program p1(input,output); Const N=10; Var x:array[1..10] of real; i,j,k,p:integer; MA,b:real; Begin For i:=1 to N do read(x[i]); MA:=abs(x[1]+x[2]); k:=1; p:=2; for i:=1 to N-1 do for j:=i+1 to N do begin b:=abs(x[i]+x[j]); if b > MA then begin MA:=b; k:=i; p:=j end end; write('k=',k,'p=',p) End.
run
|
edit
|
history
|
help
0
Opdracht_1
TanTai11A2@
array
practica 3 ejercicio B1
непарное число в массиве
1
practica 9 ejercicio 7
Tinh tong
Homework 5
For3