Activity for aytule

  • aytule aytule modified a comment on discussion Engineering 🇬🇧

    -

  • aytule aytule posted a comment on discussion Engineering 🇬🇧

    Hello all, I have a ARRAY [0..3] OF INT; and each elements of this array is unique for example; ARRAY[0] := 1 ARRAY[1] := 2 ARRAY[2] := 3 ARRAY[3] := 4 and I want to write a function gets parameters to "change array elements to 1" and others should be increase if necessary. for example; if I give 2, prompt should be; ARRAY[0] := 2 ARRAY[1] := 3 ARRAY[2] := 1 ARRAY[3] := 4 if give 0 prompt should be; ARRAY[0] := 1 ARRAY[1] := 3 ARRAY[2] := 2 ARRAY[3] := 4 What tips would you give me?

1