give answer...........any 4
Answers
Explanation:
Your answer
________________________________
8. write a program to arrange the numbers stored in a array in descending and ascending order.......
ANSWER.....
The program output is also shown below.
▪️* C program to accept N numbers and arrange them in an ascending order.
▪️int i, j, a, n, number[30];
▪️printf("Enter the value of N \n");
▪️scanf("%d", &n);
▪️printf("Enter the numbers \n");
▪️for (i = 0; i < n; ++i)
▪️
for (i = 0; i < n; ++i)
_______________________________
QUESTION... 9 . write a program that performs addition and subtraction of matrix...
ANSWER.......
▪️the program theatre forms addiction and structure substraction in a of matrix We can only add or subtract matrices if their dimensions are the same. To
▪️add matrices, we simply add the corresponding matrix elements together. To subtract matrices, we simply subtract the
▪️e corresponding matrix elements together. Not only can we add and subtract matrices, but we can solve matrix equations as well.
________________________________
QUESTION .10 write a program to perform multiple of matrix
ANSWER---------
see the program of matrix multiplication in C.
▪️#include<stdio.h>
▪️#include<stdlib.h>
▪️int main(){
▪️int a[10][10],b[10][10],mul[10][10],r,c,i,j,k;
▪️system("cls");
▪️print for("enter the number of row=");
▪️scanf("%d",&r);
▪️print for("enter the number of column=");.
▪️In order for matrix multiplication to be defined, the number of columns in the first matrix must be equal to the number of rows in the second matrix.
_______________________________
QUESTION....6. write a program to find the largest value that is stored in the array
ANSWER........
▪️the the program of largest value in the world This is a C Program to find the largest number in an array.
▪️Problem Description
We have to write a program in C such that the program will read a one-dimensional array and find out the largest element present in the array.
▪️Expected Input and Output
If we are entering 5 elements (N = 5), with array element values as 12, 56, 34, 78 and 100
Then, largest element present in the given array is: 100
♠️ you can used in following terms on the find value....#include <stdio.h>
int main() {
int i, n;
float arr[100];
printf("Enter the number of elements (1 to 100): ");
scanf("%d", &n);
for (i = 0; i < n; ++i) {
printf("Enter number%d: ", i + 1);
scanf("%f", &arr[i]);
// storing the largest number to arr[0]
for (i = 1; i < n; ++i) {
if (arr[0] < arr[i])
arr[0] = arr[i];
printf("Largest element = %.2f", arr[0]);
return 0;
_____________________________
Answer:
bro my brother has log out my I'd ayeshatanveer42 is there any to so that I can regain that I'd