-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproblem-27.c
37 lines (35 loc) · 832 Bytes
/
problem-27.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* @file problem-27.c
* Write a program for matrix input and output
* @author Md. Alamin ([email protected])
* I would love be a software engineer at Google. That is why anybody can uses this code without any condition, if you face any difficulty, then try to email me.
* @version 0.1
* @date 2022-03-22
*
* @copyright Copyright (c) 2022
*
*/
#include <stdio.h>
void main()
{
int A[10][10], r, c, n;
printf("How many row: \n");
scanf("%d", &n);
printf("Enter matrix A value: \n");
for (r = 0; r < n; r++)
{
for (c = 0; c < n; c++)
{
scanf("%d", &A[r][c]);
}
}
printf("The matrix of A are: \n");
for (r = 0; r < n; r++)
{
for (c = 0; c < n; c++)
{
printf("%d\t", A[r][c]);
}
printf("\n");
}
}