Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C programming Q2.c #20

Open
0759537471 opened this issue Nov 6, 2024 · 0 comments
Open

C programming Q2.c #20

0759537471 opened this issue Nov 6, 2024 · 0 comments

Comments

@0759537471
Copy link

// i)An array is a data structure that allows you to store multiple values in a single variable

// ii)declaring and initializing 2D array name scores

#include<stdio.h>
int main() {;

int i, j;
int scores[2][2]={ {65, 92}, {84, 72} };

//iii) to print element of the above 2 D array

for (int i=0; i<2; i++) {

for (int j=0; j<2; j++) 
	
	printf("%d\n", scores[i][j]);
	

}
return 0;

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant