LOVEGUN

Fonction Somme Matrice Carré

Jan 14th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.17 KB | None | 0 0
  1. Function Somme_mat (t:tab;n:Integer): Integer;
  2. Var
  3.   i,j,s: Integer;
  4. Begin
  5.   s := 0;
  6.   For i:=1 To n Do
  7.     For j:=1 To n Do
  8.             s:=s+t[i,j];
  9.         Somme_mat:=s;
  10. End;
Advertisement
Add Comment
Please, Sign In to add comment