How to display prime numbers using C++ program

| Last Updated: | In: C++ Tutorial


In the below program we have defined the checkPrimeNumber() function to check the prime number from the given maximum range of number by the user. This is a very easy program to display prime numbers using C++ programming language. How to display prime numbers using C++ program

Output is: Enter maximum range of prime …

C Program to Merge Two arrays

| Last Updated: | In: C Programming Tutorial


Someone asked me how to merge two arrays into one array by using the C programming language so that here we are sharing a C program which will merge the two arrays into one array and print the output. C Program to Merge Two arrays

Output is:

C Program to Calculate the Power of a Number

| Last Updated: | In: C Programming Tutorial


By using the below C Program you can calculate the power of a number. After compilation and execution of this program, you will get the message to enter the number, on the basis of entered number this program will calculate the power of that number and print the output. C Program to Calculate the Power …

C Program to Swap Two Numbers

| Last Updated: | In: C Programming Tutorial


This C program will swap the two entered numbers by using the temporary variable. This is a simple & easy program in the programming language. See the below example: C Program to Swap Two Numbers

Output is:

C Program to Convert Binary to Octal

| Last Updated: | In: C Programming Tutorial


This program will convert the entered binary numbers into the octal number by using the C programing language. To understand this program, you should have the basic knowledge of C programing language. If you have just started with C language, then check out these tutorials: 1) C Programming Basics 2) How to Compile and Run …

Print Number Triangle in C

| Last Updated: | In: C Programming Tutorial


In the previous tutorial, I have shared a program to print the star triangle using recursion in c programing language. Like the Star triangle, I am going to share program to display the triangle using the number in c programming language. Let’s create a program to print the number triangle using the c programming language. …

Check Leap Year in C

| Last Updated: | In: C Programming Tutorial


I assume that you have knowledge of C programing language operators and the If.. else statement of c programming. A leap year comes after every 4 years. In the mathematical term, you can say A year which is divisible by 4 except the century years (years which ends with 00). Program to check entered year …

Armstrong Number Program in C

| Last Updated: | In: C Programming Tutorial


Armstrong number is number which is the sum of its digit raised to the power of n itself. Here is the explanation: Then let’s check the given number 153 is an Armstrong Number or not an Armstrong Number. 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. There are many numbers …

If Else Statement in C

| Last Updated: | In: C Programming Tutorial


If Else Statement in C Programming Language In this tutorial, you will learn how to execute the If Else statement in C programming language. I have explained with some real time examples of If Else programs. In the below diagram, If the “IF” condition satisfy, then IF statement will execute otherwise Else statement will execute …

Reserve Keywords List C

| Last Updated: | In: C Programming Tutorial


Reserve Keywords List C Programming Language In every programming language, there are many reserved keywords which you can’t use to define as your own variable name. In this tutorial, I have explained the reserved keywords list C programming language. See the below list of reserved keywords in C language and do not use the same …