Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Problem 1

#include<stdio.h>

int compute(int arr1[],int arr2[]);

int main()

int arr1[50],arr2[50],i,j,k,n,teams;

printf("Enter the number of players:\n");

scanf("%d",&n);

printf("Enter the integers denoting strength of players from list A: \n");

for(i=0;i<n;i++){

scanf("%d",&arr1[i]);

for(j=0;j<n;j++){

scanf("%d",&arr1[j]);

printf("Enter the integers denoting strength of players from list B:\n");

for(k=0;k<n;k++){

scanf("%d",&arr2[k]);

teams=compute(arr1[],arr2[]);

printf("Number of Possible teams %d",&teams);

return 0;

Problem 2

#include<Stdio.h>

int check(char s);

int main()

{
int t,n,m;

char s,matrix[i][j];

printf("Enter the number of test cases:\n");

scanf("%d",&t);

printf("Enter the number of rows:\n");

scanf("%d",&n);

printf("Enter the number of coloumns:\n");

scanf("%d",&m);

printf("Enter the matrix:\n");

scanf("%s",&matrix[]);

printf("Enter the string:\n");

scanf("%s",&s);

if (

print("Yes")

else

print("No");

return 0;

int check(char s)

int n = 5;

constructMatrix(n);

for (int i = 0; i < n; i++)

for (int j = 0; j < n; j++)

printf("%d ",mat[i][j]);

printf ("\n");

}
return 0;

You might also like