632
points
Questions
4
Answers
21
-
i Have found out elements using C program. Ans is
4 | 9 | 2
———-
3 | 5 | 7
———-
8 | 1 | 6
Here is the code.#include < stdio.h > #include < conio.h > int main() { int size = 3; int matrix[3][3]; // = {{4,9,2},{3,5,7},{8,1,6}}; int row, column = 0; int sum, sum1, sum2; int flag = 0; printf("nEnter matrix : "); for (row = 0; row < size; row++) { for (column = 0; column < size; column++) scanf("%d", & matrix[row][column]); } printf("Entered matrix is : n"); for (row = 0; row < size; row++) { printf("n"); for (column = 0; column < size; column++) { printf("t%d", matrix[row][column]); } } //For diagonal elements sum = 0; for (row = 0; row < size; row++) { for (column = 0; column < size; column++) { if (row == column) sum = sum + matrix[row][column]; } } //For Rows for (row = 0; row < size; row++) { sum1 = 0; for (column = 0; column < size; column++) { sum1 = sum1 + matrix[row][column]; } if (sum == sum1) flag = 1; else { flag = 0; break; } } //For Columns for (row = 0; row < size; row++) { sum2 = 0; for (column = 0; column < size; column++) { sum2 = sum2 + matrix[column][row]; } if (sum == sum2) flag = 1; else { flag = 0; break; } } if (flag == 1) printf("nMagic square"); else printf("nNo Magic square"); return 0; }
This answer accepted by SherlockHolmes. on 29th October 2015 Earned 20 points.
- 10032 views
- 2 answers
- 0 votes
-
When you find direction for every wheel. You will find last wheel will point out to two.
This answer accepted by SherlockHolmes. on 29th October 2015 Earned 20 points.
- 15724 views
- 5 answers
- 2 votes
-
1,3 and 8th number cats don’t have right toe finger. Now eyes is different for 8th number cat. So number 1 and 3 are the identical.
- 10874 views
- 2 answers
- 0 votes
-
12 seconds in a year
jan 2nd
feb 2nd
mar 2nd and so on.- 5211 views
- 1 answers
- 0 votes
-
- 3158 views
- 1 answers
- 1 votes
-
If you find the average of umber of arms, then it would be less than 2. Hence when you are looking for person who is having an above average number of arms i.e person with two hands then the probability of meeting that person is certain.
Hence ans is:
5) Certain- 3997 views
- 2 answers
- 0 votes
-
Gears of 4 Wheeler!!
1 3 5
2 4 R- 3394 views
- 1 answers
- 0 votes
-
The catch is that he also took lots of gold. Its not possible that he could carry all of the gold by himself. So he asked for the extra parachutes, so that he could take the gold with him.
- 7551 views
- 3 answers
- 1 votes
-
The killer is Alice.
The number in front of the month’s name in the note actually points towards the position of a particular letter in every month.
Second of January = A
Third of July = L
Fourth of April = I
Second of October = C
Fourth of December = E.Thus, the name is Alice.
- 7477 views
- 1 answers
- 2 votes
-
When you tilt the barrel approx 45 degree, if the beer comes out from the barrel then its more than half full else its less than half full.
- 3409 views
- 2 answers
- 1 votes