# C Programs

## C++ Program to Print Number Entered by User

In this basic C++ program, we will have a look at the program to print the number entered by the user in the C++ programming language. C++ Program to Print Number Entered by User #include <iostream> using namespace std; int main() { int number; cout << “Enter an integer that you want to print on the …

## Hello world program in C++

In this basic C++ program, we will have a look at the program to print “Hello World” in C++ programming language. If you are new to the C++ programming language, you will find it fun! This program will help you to understand how things work in the C++ programming language. Now let’s have a look …

## C++ Program to Find Factorial of a Number using Iteration

In this C++ program, we will have a look at the factorial of a number in C++ using Iteration. Iteration is the process of the repetition of a method in order to generate a  sequence of outputs. Factorial of a Number using Iteration in C++ #include<iostream> using namespace std; class fact { public: int factorial(int …

## Factorial of a Number in C++ using Recursion

In this C++ program, we will have a look at the factorial of a number in C++ using Recursion. If a function is called over and over again, the function is regarded as the Recursive Function Factorial of a Number in C++ using Recursion #include <iostream> using namespace std; int main () { int factorial …

## C++ Programs

C++ Programs are important to practice in order to qualify any technical interviews. These C++ programs concentrate on all areas of C++ programming language covering all the topics in C++. List of C++ Programs 1) List Of Basic Programs In C++ Below Basic C++ Programs are important for beginners to have a proper hands-on and …

## Compare Two Arrays In C Programming

Let’s have a look at C Program to Compare Two Arrays. The output of the program will be “They are equal” if both the arrays are equal otherwise it will say “They are not equal”. C Program To Compare Two Arrays

## Check whether a number has consecutive 0’s in C++

In this C++ Program, we will check if the given number has consecutive 0’s . C++ Program to check whether a number has a consecutive 0’s #include<bits/stdc++.h> using namespace std; int toK(int N, int K) {    int w = 1;    int s = 0;    while (N != 0)     {        int r = N % K; …