Programming

Relational Operators in C

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 …

Relational Operators in C Read More »

Enumeration in C

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 …

Enumeration in C Read More »

getchar() and putchar() in C

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 …

getchar() and putchar() in C Read More »

Convert Fahrenheit to Celsius through a C program

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 …

Convert Fahrenheit to Celsius through a C program Read More »

Numerical operators 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 …

Numerical operators in Python Read More »

Slice a string in Python

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 …

Slice a string in Python Read More »

input() function - get input from the user in Python

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() …

input() function – get input from the user in Python Read More »

Scroll to Top