OUTPUT (after running):
Enter number of elements in the array: 10
Enter the array elements: 10 20 30 40 50 60 70 80 90 100
Enter the element you want to search: 90
Element 90 is present at 9 location
Q9.
Write a C program to read n values from the keyboard and compute their mean standard
deviation (SD) and variance (VAR).
[
Hint:
The formulas to be used are as follows:
AM = 1/n Σx
i
where i → 1 to n
VAR = 1/n [Σ (x
i
– AM)
2
]
and SD = sqrt(VAR) ].
Multidimensional Arrays
A multidimensional array is an array having more than one dimension (2d, 3d, etc.)
Two-Dimensional Arrays
A two-dimensional array is basically a collection of similar types of elements which are organized in
two dimensions. They are used to represent a table with rows and columns. Real-life examples of 2d
arrays include chess boards, tic-tac-toe boards, and so on.
Do'stlaringiz bilan baham: |