Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
(p,q,r)
program Trojkepqr; var a:array[1..50] of integer; p,q,r,i,n:integer; begin writeln('Unesite broj elemenata: '); read(n); writeln('Unesite elemente niza: '); for i:=1 to n do read(a[i]); writeln('Trazene trojke su: '); for p:=1 to n do for q:=1 to n do for r:=1 to n do if not(p=r) and not(p=q) and not(q=r) then if (a[p]=(a[q]+a[r])) then writeln('(',a[p],',',a[q],',',a[r],')'); end.
run
|
edit
|
history
|
help
0
Letícia
test27
test27
Task1-1
Pokazivac-dinamicka alokacija memorije
BubbleSor (slimmer)
Пузырьковая сортировка, среднее и среднее медианное
record as a procedure argument
nested for loop a(ii)
Бассейн-8 count