Skip to main content

MULTIDIMENSIONAL MATRIX C CODE

\\DATA STRUCTURE
\\TOPIC:MULTIDIMENSIONAL MATRIX(INSERTION,DISPLAY DIAGONAL,SUM OF DIAGONAL)
\\AUTHOR:DARSHIT VORA
#include < stdio.h >
#include < conio.h >
void main()
{
int a[3][3],i,j,sum=0;
clrscr();

for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("Enter the element of matrix");
scanf("%d",&a[i][j]);
}
}
printf("\nThe matrix is:");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("\na[%d][%d] = %d",i,j,a[i][j]);
}
}
printf("\nThe diagonal of matrix is:");
for(i=0;i<3;i++)
{
printf("\na[%d][%d] = %d",i,i,a[i][i]);
}
printf("\nSum of diagonal of matrix");
for(i=0;i<3;i++)
{
sum=sum+a[i][i];
}
printf("\nSum = %d",sum);
getch();
}

Comments

Popular posts from this blog

INDIA IN WORLD

The Republic of India is the world's most-populous democracy and has one of the fastest economic growth rates in the world ( 8.9 percent GDP increase in 2007, the second-fastest major economy in the world after China). With the world's fourth largest armed forces , and twelfth largest economy by market-exchange rates, it is considered to be a regional power and a potential superpower . It is India's growing international influence that increasingly gives it a more prominent voice in global affairs. After India gained independence from the United Kingdom in 1947, it soon joined the Commonwealth of Nations and strongly supported independence movements in other colonies , like the Indonesian National Revolution . A nuclear bomb test in 1974 made India the first confirmed nuclear state outside the United Nations Security Council . What is notable about the foreign relations of India is that it maintains good relationships with both Russia and United States at the sam...

knowledge

Knowledge is defined in the Oxford English Dictionary as (i) expertise, and skills acquired by a person through experience or education; the theoretical or practical understanding of a subject, (ii) what is known in a particular field or in total; facts and information or (iii) awareness or familiarity gained by experience of a fact or situation. Philosophical debates in general start with Plato's formulation of knowledge as "justified true belief". There is however no single agreed definition of knowledge presently, nor any prospect of one, and there remain numerous competing theories. Knowledge acquisition involves complex cognitive processes: perception, learning, communication, association and reasoning . The term knowledge is also used to mean the confident understanding of a subject with the ability to use it for a specific purpose if appropriate. See Knowledge Management for additional details on that discipline.

INDIAN CURRENCY

After independence, new designs were introduced to remove the portrait of the King. The government continued to issue the 1 rupee note, while the Reserve Bank issued other denominations, including the 5000 and 10,000 rupee notes introduced in 1949. In the 1970s, 20 and 50 rupee notes were introduced but denominations higher than 100 rupees were demonetized in 1978. In 1987, the 500 rupee note was reintroduced, followed by the 1000 rupees in 2000. Circulating Coins (*) Value Technical parameters Description Date of Diameter Mass Composition Shape Obverse Reverse first minting last minting 5 paise 22 mm (diagonal) 1.5 g Aluminium Aluminium Aluminium or aluminum is the chemical element in the periodic table that has the symbol Al and atomic number 13.... Square Emblem of India Emblem of India Category:National coats of armsCategory:National symbols of Indiade:Wappen Indienses:Escudo de la India... Value 1957 1994 10 paise 16 mm 2 g Ferritic stainless steel St...