Prime number program in C with explanation

C Program to Check given number is Prime number or not

In this tutorial we are going to learn how to write a program to check whether a given integer number by user is a prime number or not in C programming language. If given number is prime then our logic will assign value 0 to a temp variable and will print “number is prime” and … Read more

C Program to Check a Given Number is an Armstrong or not

C Program To Check The Given Number Is Armstrong Or Not

In this tutorial, we are going to learn how to write a program in c to check a given input number is Armstrong or not?So before moving directly on the writing program, I will recommend you please first know : What is Armstrong Number? Example of Armstrong number Lets see it practically by calculating it, … Read more

Efficiency of an Algorithm with the help of examples

The efficiency of an algorithm defines the number of computational resources used by an algorithm and time taken by an algorithm to produce the desired result. If an algorithm contains only linear functions (having no loops or recursions), we calculate its efficiency or running time by counting the number of instructions it contains. However, For … Read more