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

Arrays : two dimension (2-D) cont. Setting By : A.
1 / 1
Arrays : two dimension (2-D) cont. Setting By : A. - slide 1 of 8 Arrays : two dimension (2-D) cont. Setting By : A. - slide 2 of 8 Arrays : two dimension (2-D) cont. Setting By : A. - slide 3 of 8 Arrays : two dimension (2-D) cont. Setting By : A. - slide 4 of 8 Arrays : two dimension (2-D) cont. Setting By : A. - slide 5 of 8 Arrays : two dimension (2-D) cont. Setting By : A. - slide 6 of 8 Arrays : two dimension (2-D) cont. Setting By : A. - slide 7 of 8 Arrays : two dimension (2-D) cont. Setting By : A. - slide 8 of 8
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

Related Topics

Download this presentation From Below

"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.

Presentation Transcript

01
Arrays : two dimension (2-D) cont. Setting By : A. L. Waleed Rasheed Thirteen Lecture IN C++ LANGAUGE<br>
02
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 ]<br>
03
s=0;
for ( i = 0; i < 5; i++)
for ( j = 0; j < 5; j++)
if (i==j) s+=a[i][j];
cout<<“sum = "<<s; Q / write a program section with array 2-D a[5,5], to find sum No. in main diagonal?<br>