# Programming

## Relational Operators in C

In this article, we would discuss relational operators in C programming language. With the help of relational operators, we get to compare two values. Accordingly, as per the instructions specified, we get the outcome as either true/false or 1/0. Relational operators basically helps us reach a decision. Besides, we mostly use them in loops. For …

## Enumeration in C

In this article, we would discuss enumeration in C. If we intend to have a variable, which stores value from a pre-defined set of values. Then, that is where enumerations comes in handy. Enumerations are way to define data types. We can have both named as well as unnamed enumeration data types. We will discuss …

## getchar() and putchar() in C

In this article, we would discuss the two standard library functions i.e. getchar() and putchar() in C. getchar() helps us read the next input character whereas, putchar() writes a character. We emphasize that, both these functions read and write a character every time they are called. We will understand these functions with the help of …

## Convert Fahrenheit to Celsius through a C program

In this article, we would discuss how to convert Fahrenheit to Celsius through a C program. But before that, a bit about scale of temperatures. There are three most common units to measure temperature. These are: Fahrenheit, Celsius and Kelvin. The Customary unit of measurement of temperature is Fahrenheit, proposed by Polish Physicist Daniel Gabriel …

## Square root of a number in Python

In this article, we would discuss how to find the square root a number in Python. First, it would be through a program. In the latter part of the article, we would do it using math module. But, there’s a catch. We can’t find it (sqrt) for a negative number using math module in Python …

## Numerical operators in Python

In this article, we would discuss various numerical operators in Python v3.9. We use these operators on Python expressions. Python expressions consists of operands and operators. For instance, a + b where, a & b are the operands, + is the operator. There is an order of precedence in Python for operators as well. We …

## Slice a string in Python

We can extract substring from a string. In this article, we would illustrate how to slice a string in Python v3.9. But before we proceed, it is important to discuss a bit about string indexing. In the additional info section, we would discuss how Python strings are immutable i.e. they can’t be assigned values. Indexing …

## Square root of a negative number in Python

Use of complex numbers help us get the square root of a negative number in Python. In complex numbers, we have an imaginary unit (i.e. i). In Python it is denoted by j. And, defined as – Use the cmath module to get the square root of a negative number. The module has various mathematical …

## input() function – get input from the user in Python

In this article, we would discuss input() function in Python v3.9. input() function, a built-in Python function, helps us get input from the user. By default, input() function reads the input as string unless otherwise instructed. Here, we would discuss how a user can input integer, float and string values with the help of input() …

## Change default Java version in Ubuntu 20.04 LTS

We consider this article to be an extension to the previous article – Install OpenJDK JRE / JDK in Ubuntu 20.04 LTS. As you would notice, we have already installed version 11 of OpenJDK JRE / JDK in Ubuntu 20.04 LTS release. Now, consider a scenario wherein we have also installed version 8 of OpenJDK …

Scroll to Top