C_58 Program to print Sum of individual Rows and Columns of a Matrix | C Programming

C_58 Program to print Sum of individual Rows and Columns of a Matrix | C Programming

Jenny's Lectures CS IT

2 года назад

176,868 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@RevathiB-mn9zn
@RevathiB-mn9zn - 10.12.2023 15:48

Errors how to reduue

Ответить
@user-yf6nx1cf8r
@user-yf6nx1cf8r - 11.11.2023 09:01

This program is failed to work when number of columns are less than number of rows, mam pls help me with this.

Ответить
@tusharsrivastava3498
@tusharsrivastava3498 - 14.10.2023 09:49

Please check the same programme with different number of rows and columns not with square matrix. May be column total will create issue.

Ответить
@technicalmaharathi8099
@technicalmaharathi8099 - 26.09.2023 11:16

You are too much hot 🔥 🥵

Ответить
@dharmika27
@dharmika27 - 01.08.2023 21:07

Ma'am the entered elements is not showing up in the matrix
Like if I enter
1 2 3 4 5 6
It is displaying
6422275 6422276 6422279
6422284 6422286 6422289
Someone pls respond my kind request 🙏

Ответить
@harshithakandukuri8208
@harshithakandukuri8208 - 29.06.2023 16:07

Sc=sc+a[j][i]
But in explaintion you would take j=0 but we take i=0 whyyyyy????

Ответить
@user-ue9ty9mn6i
@user-ue9ty9mn6i - 24.06.2023 19:57

Mam is it possible to create an array for infinite elements?

Ответить
@sowmyaanukula3647
@sowmyaanukula3647 - 20.06.2023 18:00

can you please teach complete c#. @jenny'slecturesCSIT

Ответить
@mrrevan5399
@mrrevan5399 - 06.05.2023 15:39

Osm 😮

Ответить
@yashuyeswanth7184
@yashuyeswanth7184 - 07.03.2023 14:45

First declaration lone sumrow=sumcol=o;
Cheyyacha

Ответить
@markbarasa4549
@markbarasa4549 - 03.03.2023 17:51

who can give me the sos cod..mine is adding rows only neglecting colums

Ответить
@armangaming4573
@armangaming4573 - 27.02.2023 16:35

Thanks mem 2 din s me ye logic nhi bana paya

Ответить
@dileryadav9983
@dileryadav9983 - 16.02.2023 23:20

// you are become my favourite one.\t thanks mam //

Ответить
@manikantasurya9165
@manikantasurya9165 - 28.01.2023 09:35

Mam thanks for your patience

Ответить
@EnchantedVerse_
@EnchantedVerse_ - 24.01.2023 15:25

Printf("Just another day ")

Ответить
@yosarahioui4878
@yosarahioui4878 - 06.01.2023 19:43

I love u

Ответить
@jnuece
@jnuece - 04.01.2023 06:05

Consider it not to be a square matrix then this logic will not work

Ответить
@jnuece
@jnuece - 04.01.2023 05:36

thankyou ma'am

Ответить
@ajc7531
@ajc7531 - 22.12.2022 22:35

I just only say that ur awesome teacher 👩‍🏫‍appreciate to ur hardwork ❤

Ответить
@ayanjey2478
@ayanjey2478 - 27.11.2022 12:01

In 4: 32 time, my heart skipped a bit🙂🙂🥰

Ответить
@ibrahimkhaleel2822
@ibrahimkhaleel2822 - 08.11.2022 11:01

Hi..
I have doubt how can i ask you ? Pls rply

Ответить
@ayushkumarkeshri1327
@ayushkumarkeshri1327 - 09.10.2022 18:13

Sum of Diagonal Elements of a 3 X 3 Matrix


# include<stdio.h>

int main ()
{
int i,j,SumDiagonal=0;
int a[3][3];
printf("Enter elements of Matrix: ");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%d", &a[i][j]);
}
}
printf("\n Matrix is:\n ");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("%d\t", a[i][j]);
}
printf("\n ");
}
for(i=0;i<3;i++)
{
for(j=i;j<=i;j++)
{
SumDiagonal= SumDiagonal + a[i][j];
}
}
printf("\n Sum of diagonal elements is: %d", SumDiagonal);
return 0;
}

Ответить
@nonstopcodingcodewithadity8238
@nonstopcodingcodewithadity8238 - 27.09.2022 05:18

lol raat ko padh raha tha saab upar se ja raha tha kuch samaj nhi aa raha tha but subha fresh mind tha tho saaab samaj aa gaya

Ответить
@mohamedhamza6110
@mohamedhamza6110 - 14.09.2022 15:36

Mam share a link for coding app to download...

Ответить
@iamBETTO
@iamBETTO - 22.08.2022 04:20

Mam, you are very beautiful. Thanks to this video, I learned in 18 minutes more than I managed to learn in a week. God bless you.

Ответить
@vinuthadc6505
@vinuthadc6505 - 11.08.2022 17:03

for(i=0;i<3;i++)
{

for(j=0;j<3;j++)
{
if(i==j)
sumd = sumd + a[i][j];

}

}
printf("\nsum of diagnoal = %d\n", sumd);

Ответить
@johndavid5907
@johndavid5907 - 08.07.2022 20:17

I tried this program by taking 3 for rows and 4 for columns in a mat[][] array,and its generating wrong columns sums, but rows sums is perfect. Please can anyone help me get through this.

Ответить
@binitaghosh1248
@binitaghosh1248 - 30.06.2022 09:16

Hats off to your logic....🎩..... Ma'am

Ответить
@genericbinary558
@genericbinary558 - 28.06.2022 20:40

but it will work for square matrix only

Ответить
@santu3707
@santu3707 - 09.06.2022 12:56

You are best teacher mam

Ответить
@saifaliquraishi4943
@saifaliquraishi4943 - 02.06.2022 16:16

Mam sum of diagonal ka logic bta do

Ответить
@divyanshugupta6826
@divyanshugupta6826 - 03.05.2022 16:32

mam it is only applicable for square matrix
???

Ответить