a guest Nov 20th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var A:array[1..15] of integer = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
  2. var B:array[1..10] of integer = (1,2,3,4,5,6,7,8,9,10);
  3. var Y:array[1..15] of real;
  4. var ai_squared,sumB: integer;
  5. begin
  6. for var i:=0 to 15 do
  7.     sumB:=0;
  8.     ai_squared:= A[i]*A[i];
  9.     for var j:=0 to 10 do
  10.         sumB:=sumB+B[j];
  11.     Y[i]:=ai_squared/sumB;
  12. end.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand