Programming

Programming is the process of writing computer understandable instructions. These instructions can be written using languages known as computer programming languages. Java, Python, C#, C, and C++ are some of the popular ones.

Implement the Pseudo-codes of Euclid’s Algorithm

Implementing Euclid's Algorithm

Let us look into how to implement Euclid’s algorithm and Euclid’s Extended Algorithms using Java Programming Language. Euclid’s Algorithm Pseudocode Euclid’s Extended Algorithm Pseudocode Question Implement the pseudo-codes of Euclid’s algorithm with recursive function and extended Euclid’s algorithm in any programming language you are comfortable with. Your program should take two integers A and B …

Implement the Pseudo-codes of Euclid’s Algorithm Read More »

C Program to Find GCD

C Program to Find GCD: This post discusses how to write C program to find GCD. There are many approaches to find the greatest common divisor (GCD) of any two numbers. It is the highest number that can divide both the numbers. The commonly used method to find the GCD of any two numbers is …

C Program to Find GCD Read More »

Structures and Unions in C Programming

Structures In the previous chapter, Arrays we have found that arrays are being used to store data of the same type. But often we come across the collection of that of different types that can be considered a unit. For example, in the register book that contains the employee details working in a company, the …

Structures and Unions in C Programming Read More »

Control Statements in C Programming

Control statements in C: While solving computational problems we come over conditions where we need to deal with the situations that have two possibilities like a thing would happen if other doesn’t happen. Sometimes we may have to keep the program executing repeatedly unless a certain point is being reached. To overcome these situations we …

Control Statements in C Programming Read More »