Arrays : two dimension (2-D) cont. Setting By : A.
1 / 1

Arrays : two dimension (2-D) cont. Setting By : A.

Author : alexa-scheidler | Published Date : 2025-05-12

Description: Arrays two dimension 2D cont Setting By A L Waleed Rasheed Thirteen Lecture IN C LANGAUGE CONDITIONS main diagonal secondary diagonal i j main diagonal i j Triangle under main diagonal i j Triangle above main

Presentation Embed Code

Download Presentation

Download Presentation The PPT/PDF document "Arrays : two dimension (2-D) cont. Setting By : A." is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Transcript:Arrays : two dimension (2-D) cont. Setting By : A.:
Arrays : two dimension (2-D) cont. Setting By : A. L. Waleed Rasheed Thirteen Lecture IN C++ LANGAUGE CONDITIONS main diagonal secondary diagonal i == j  main diagonal i > j  Triangle under main diagonal i < j  Triangle above main diagonal القطر الرئيسي القطر الثانوي i+j == n-1  secondary diagonal i+j > n-1  Triangle under secondary diagonal i+j < n-1  Triangle above secondary diagonal القطر الرئيسي القطر الثانوي A [ n , n ] s=0; for ( i = 0; i < 5; i++) for ( j = 0; j < 5; j++) if (i==j) s+=a[i][j]; cout<<“sum = "<j && a[i][j]>=0) s1+=a[i][j]; if ( i+j<4 && a[i][j]<0) s2+=a[i][j]; } cout<<“Pos.No.= "<