Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
тренировка баскетболиста
//fpc 3.0.0 program HelloWorld; const b = 30; p = 5; var kb, kp, hit : integer; flag : boolean; // will true after 5 hits one to other begin randomize; kb := 0; kp := 0; flag := FALSE; while ( kb <> b ) or flag do begin hit := random ( 3 ); if hit <> 0 then begin kp := kp + 1; end else begin kp := 0; end; write (hit:2); if kp >= p then begin flag := TRUE; writeln (flag); end else begin flag := FALSE; kp := 0; end; kb := kb + 1; end; writeln(flag, kb:3); end.
run
|
edit
|
history
|
help
0
code
Lab3Factorial
BIANCA SAMPAIO ALFRADIQUE 600615759
BubbleSor (slimmer)
3
ax+by=n
tarea1
Union of set with array of elements
x-div-2-x-3+1
vd