I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]
I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]
I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]
I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]
I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]
I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]
I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]
I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]
I am getting wrong output in eclipse ide
#include <stdio.h> #include <stdlib.h> int main(void) { int arr[3][3]={{1,2,3},{4,5,6},{7,8,9}},sr,sc,i,j; for(i=0;i<3;i++){ for(j=0;j<3;j++){ sc=sc+arr[j][i]; } } printf(“the sum of row =%d”,sc); for(i=0;i<3;i++){ for(j=0;j<3;j++){ sr=sr+arr[i][j]; } } printf(“n the sum of column =%d”,sr); return EXIT_SUCCESS; } This is my code so the Eclipse showing sum of rows is 45 and sum of columns 390948 like number but exact […]