Python program to calculate the square root of a number

Calculate The Square Root Of A Number in python

In this tutorial, we are going to learn a python program to calculate the square root of a given number. Problem Statement For any number that are inputs given by the user, we have to print the square root of that number.  For example: Our logic to calculate the square root of a given number … Read more

Python program to find smallest number among three

python program to Find Smallest Number Among Three

In this tutorial, we are going to learn a python program to find the smallest number among three numbers that are given by the user. Problem Statement For three numbers that are inputs given by the user, we have to print the smallest among those 3 numbers.  For example: Our Logic to find smallest number … Read more

Python program to check given number is even or odd

Check Given Number Is Even Or Odd in python

In this tutorial, we are going to learn a python program to find a number given as input from the user is even or odd. Problem Statement For any number that is input by the user, we have to check if it is even or odd. For example: How to check if a number is … Read more

Python program to print first n prime numbers

python program to Print First N Prime Numbers

In this tutorial, we are going to learn a python program to print all the prime numbers that are smaller than or equal to the number given as an input by the user. Problem Statement For any number that is input by the user, we have to print all the prime numbers. For example: What … Read more

C Program to calculate the power without using POW function

C Program To Calculate The Power Without Using Pow Function

In this tutorial, we are going to learn a writing program in C to calculate the power of a given number without using the POW method. Here we will write our own logic to calculate the power of a given number. To calculate the power we need two numbers. One is the base number and … Read more