Skip to content

Tag Archives: C Basic Programs

C Basic Programs

Given a number (num)  we need to check whether it is a Neon Number ( i.e. a number where the sum of digits of the… Read More
To display the Armstrong number between two intervals we can use 2 different Methods with 4 approaches: Without using the pow() function Using pow() function… Read More
Here we are going to add two complex numbers using a C program: Input: a = ( 2 + 3i ) b = ( 4… Read More
 Here we will build a C program to calculate the sum of natural numbers using 4 different approaches i.e. Using while loop Using for loop… Read More
Here, we will find the area and perimeter of rectangle using a C Program as follows: Example:  Input: l = 10 b = 10 Output: … Read More
Here we will build a C program to display prime numbers between two intervals using functions using the following 2 approaches: Using for loop Using… Read More
Here, we can use the 2 different approaches to print the name: Using printf() Using scanf() Input:  Enter Name = Mukul Output:  Name = Mukul… Read More
Here, we will see how to print a triangle using the C program Input:  5 Output: *  * *  * * *  * * *… Read More
Here we will build a C program to check prime numbers by creating a function using 3 different approaches: Using for loop for prime number… Read More
Here, we will see how to build a C program to print prime numbers from 1 to N using 2 approaches: To check whether every… Read More
Here, we will build a C Program to Generate a Multiplication Table using 2 approaches i.e. Using loops and a 2-D array Using loops and… Read More
Here we will see how to build a C Program to Print the first letter of each word. Given a string, we have to find… Read More
Given two Binary String, we have to return their sum in binary form. Approach: We will start from the last of both strings and add… Read More
We can make a simple calculator using C language by two approaches using switch case and if-else statement. Input:  7+8 8-9 8*7 8/3 Output: Enter… Read More
Here, we will see how to find the largest among three numbers using a C++ program. Below are the examples: Input: a = 1, b… Read More

Start Your Coding Journey Now!