Комментарии:
Errors how to reduue
ОтветитьThis program is failed to work when number of columns are less than number of rows, mam pls help me with this.
ОтветитьPlease check the same programme with different number of rows and columns not with square matrix. May be column total will create issue.
ОтветитьYou are too much hot 🔥 🥵
Ответить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 🙏
Sc=sc+a[j][i]
But in explaintion you would take j=0 but we take i=0 whyyyyy????
Mam is it possible to create an array for infinite elements?
Ответитьcan you please teach complete c#. @jenny'slecturesCSIT
ОтветитьOsm 😮
ОтветитьFirst declaration lone sumrow=sumcol=o;
Cheyyacha
who can give me the sos cod..mine is adding rows only neglecting colums
ОтветитьThanks mem 2 din s me ye logic nhi bana paya
ОтветитьMam thanks for your patience
ОтветитьPrintf("Just another day ")
ОтветитьI love u
ОтветитьConsider it not to be a square matrix then this logic will not work
Ответитьthankyou ma'am
ОтветитьI just only say that ur awesome teacher 👩🏫appreciate to ur hardwork ❤
ОтветитьIn 4: 32 time, my heart skipped a bit🙂🙂🥰
ОтветитьHi..
I have doubt how can i ask you ? Pls rply
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;
}
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
ОтветитьMam share a link for coding app to download...
Ответить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.
Ответить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);
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.
ОтветитьHats off to your logic....🎩..... Ma'am
Ответитьbut it will work for square matrix only
ОтветитьYou are best teacher mam
ОтветитьMam sum of diagonal ka logic bta do
Ответитьmam it is only applicable for square matrix
???