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….

# Category: Structured Programming Language

## 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) =…

## A program to calculate Sum of Squares using C Language

## History of C

ALGOL, the root of all modern language was introduced around 1960s. It gave the concept of structured programming to Computer Science Society. ALGOL was popularized by computer scientist like Corrado Bohm, Guispee Jacopini and Edsger Dijkstra.

## Nested for loop

Write a program to show following output depending upon input n. Sample input: n=3 Sample output: 1 12 123 Sample input: n=5 Sample output: 1 12 123 1234 12345 See the video for solution 🙂