# Author: admin

## Storing cricketer information using STRUCTURE

Question: Define a structure called “Cricket” that will describe the following information: player name, team name and batting average. Using the structure, declare an array player with 50 elements and write a program to read the information about all the 50 players and print a team-wise list containing names of players with their batting average….

## GCD of two numbers- how to find with programming C

Question: Write a program to find Greatest Common Divisor(GCD) of two numbers using recursion. Explanation: Rule 01: if(b==0) return GCD(a,b)=a; Rule 02: else if(a>b) return GCD(a,b)=GCD(b,a); Rule 03: else return GCD(a,b%a); You can also visit https://www.youtube.com/watch?v=uG2vDIqi3Kc for video explanation a=3 b=5GCD(3,5) = GCD(3, 2) Rule 03GCD(3,2)=GCD(2,3) Rule 02GCD(2,3)=GCD(2,1) Rule 03GCD(2,1)=GCD(1,2) Rule 02GCD(1,2)=GCD(1,0) Rule 03GCD(1,0) =…

## Question 5

There are two names given JOHNSON and TONY. If one letter is picked from both simultaneously at random, then find the probability that the letter is same? JOHNSON = 2/7 (if I pick O) TONY= ¼ (if I pick O) Total probability of picking O = 2/7 + ¼ JOHNSON = 2/7( if I pick…

## Question 4

If in a team of 100, 70 liked cricket, 80 liked football and 5 liked neither, then how many people did like cricket but not football? C-N= 70-N F-N=80-N 70-N+N+80-N+5=100 155-N=100 N=155-100 N=55 C-N=70-55 =15 Answer: 15 For details, see the video https://youtu.be/b6lbcfMcaF4