Home > Back-end >  C language programming, many, many thanks for help
C language programming, many, many thanks for help

Time:09-17

To run the program after dropping hints to let the user choose to calculate the sum of square matrix diagonal elements or computing square matrix a maximum of all elements, then prompt the user for the size of the matrix of dimension N, N range is limited to 1 N 5 or less or less, then provide prompt lets users choose to enter the data type of the matrix element, providing an int and double two types for the user to choose from, and then prompt the user through the keyboard input matrix of all elements, according to the matrix elements of the data type program automatically selected according to the d or f format character format output operations as a result,

CodePudding user response:

Cout warning information and allow the user to input 1, 2 option - & gt; Cin access options - & gt; Cout input message - & gt; Cin get information - & gt; Information processing - & gt; Cout or print the formatted output

CodePudding user response:

The diagonal elements of a [I] [I]
Iterate through all the elements for maximum