How To Ideas | How To Articles | How To Tutorials


List/Grid Tag Archives: to

How to find Nth Perfect Number in C language

Perfect Numbers are those numbers which is equal to the sum of its proper positive divisors (excluding itself). Consider number 6, it has only four proper positive divisors 1, 2, 3 and 6. If we exclude 6, proper divisors left are 1, 2 and 3 and their sum is 6 which is equal to the number itself. So, 6 is a Perfect Number. You can learn more about Perfect Numbers… Read more »

How to find Nth Prime Number in C language

Prime numbers are the numbers greater than 1 which are divisible only by 1 and itself, like 3 is divisible by 1 and 3 only. So, if a natural number n is a Prime Number, then it is divisible by only 1 and n and not divisible by any number from the sequence 2, 3, 4, . . . . , (n – 1). You can find more information about… Read more »

How to find list of Prime Numbers in a given range in C

Prime numbers are the numbers greater than 1 which are divisible only by 1 and itself, like 3 is divisible by 1 and 3 only. So, if a natural number n is a Prime Number, then it is divisible by only 1 and n and not divisible by any number from the sequence 2, 3, 4, . . . . , (n – 1). You can find more information about… Read more »

How to find Prime Factors of a number in C language

In Number Theory, every Natural Number can be expressed as a multiple of Prime Numbers only and those Prime Numbers are called Prime Factors of that number. So, Prime Factors of a positive integer are the Prime Numbers which can divide the number perfectly that is no remainder will be left. More information about Prime Factors can be found on Wikipedia. In this example, I will show you a C… Read more »

How to check your current Active Sessions on Facebook

The Active Sessions in Facebook shows you a list of recent times you have accessed your account. from any device. Every entry includes the date and time of the start of activity (generally sign in time), your approximate location-based on your IP address used to access your account and type of device you were using to access Facebook. There is also an option available to end a particular active session… Read more »

How to find Average of Numbers provided through Command Line using Shell Script

In this tutorial, I will show you how to use Shell Script to find Average of any number of arguments (numbers) provided through Command Line. The script will find show an error if no argument is provided, otherwise it will find Average of numbers provided and prints its output on the Terminal. Algorithm: Check if the numbers of arguments supplied are equal to 0 or not. If yes, print error message… Read more »

How to find LCM using GCD- Euclid’s Method

Least Common Multiple (LCM) of two numbers is the smallest positive integer which is also a multiple of both the numbers. If any of the two numbers is 0, LCM of those two numbers will be 0. You can find more about LCM of two numbers on Wikipedia. In this tutorial, I will show you how can you find LCM of two numbers using Euclid’s Method i.e. by using GCD… Read more »

How to check whether a number is Perfect in C

Perfect Numbers are those numbers which are equal to the sum of its proper positive divisors (excluding itself). Consider number 6, it has only four proper positive divisors 1, 2, 3 and 6. If we exclude 6, proper divisors left are 1, 2 and 3 and their sum is 6 which is equal to the number itself. So, 6 is a Perfect Number. You can also say that Perfect Number… Read more »

How to enable Timeline in Facebook Profile

Timeline is a new feature in Facebook and as per Facebook Blog “Timeline gives you an easy way to rediscover things you shared, and collect your most important moments“. It is a new kind of profile showing a number of improvements over the old profile. Overall its a very good improvement which shows your profile in more consistent and managed way. You can control what should be visible to your… Read more »

How to find Greatest Common Divisor ( GCD ) using Euclid’s Method in C

Greatest Common Divisor ( GCD ) or Highest Common Factor ( HCF ) or Greatest Common Factor ( GCF ) of two numbers is the greatest positive integer that perfectly divides both the numbers. You can find more about GCD of two numbers on Wikipedia. In this tutorial, I will show you a very simple way to find GCD of two numbers using Euclid’s Method in C language. You can… Read more »



© 2012 How To Ideas. All rights reserved.
Proudly designed by Theme Junkie.