-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnestedloop.c
More file actions
39 lines (35 loc) · 800 Bytes
/
nestedloop.c
File metadata and controls
39 lines (35 loc) · 800 Bytes
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
38
/*
* =====================================================================================
*
* Filename: nestedloop.c
*
* Description:
*
* Version: 1.0
* Created: 19-Oct-21 10:29:48
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#include <stdlib.h>
#include <stdio.h>
int main(){
int nums[3][2] = {
{1,2},
{3,4},
{5,6}
};
/* printf("%d\n", nums[1][1]); */
int i, j; /* chnwke position */
for (i = 0; i < 3; i++){ /* lera boye 3 samna chwnke i=3*/
for (j = 0; j < 2; j++){ /* lera boye 2 chnwke j=2*/
printf("%d,",nums[i][j]);
}
printf("\njj");
}
return 0;
}