No products in the cart.

Wtite a user defined function in …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Wtite a user defined function in c++ to find the sum of both left and right diagonal elements from a two dimensional array
  • 3 answers

Cbse Student 5 years, 10 months ago

Sorry,,,Right* diagonal h typing mistake ho gyi

Cbse Student 5 years, 10 months ago

Dight diagonal m if (i+j==N-1) Or left m if(i==j)

Ramanpreet Kaur 5 years, 10 months ago

{ int count=0; for(int i=0;i<m;i++) for(int j=0;j<n;j++) {if(i=j||i+j%2==0) {count=count+A[i][j]; } }
http://mycbseguide.com/examin8/

Related Questions

What is mean by buffering in file handling?
  • 1 answers
What are called tokens
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App