Category: C program

python tutorials and learn python

Created with Sketch.

C Program to Convert Octal Number to Decimal and vice-versa

C Program to Convert Octal Number to Decimal and Vice-Versa Introduction In this C programming tutorial, we will create a program to convert octal numbers to decimal and vice-versa. Octal and decimal are two different number systems. Octal is base-8, and decimal is base-10. The algorithm, C code, and explanation will cover both conversion processes.…
Read more

C Program to Convert Binary Number to Decimal and vice-versa

C Program to Convert Binary Number to Decimal and Vice-Versa In this tutorial, we’ll explore how to create a C program to convert binary numbers to decimal and vice versa. Binary and decimal are two different number systems commonly used in computer science and mathematics. Binary is base-2, and decimal is base-10. Let’s delve into…
Read more

C Program to Find G.C.D Using Recursion

C Program to Find GCD Using Recursion In this tutorial, we’ll create a C program to find the Greatest Common Divisor (GCD) of two numbers using recursion. GCD is the largest positive integer that divides each of the numbers without leaving a remainder. We’ll employ a recursive algorithm to calculate the GCD efficiently. Let’s dive…
Read more

C Program to Find Factorial of a Number Using Recursion

C Program to Find Factorial of a Number Using Recursion In this tutorial, we’ll explore how to create a C program to find the factorial of a number using recursion. The factorial of a non-negative integer n, denoted by !n!, is the product of all positive integers up to n. The recursive approach provides an…
Read more

C Program to Find the Sum of Natural Numbers using Recursion

C Program: Sum of Natural Numbers using Recursion Recursion is a programming concept where a function calls itself, and it’s often used to solve problems that can be broken down into smaller, identical subproblems. In this blog post, we’ll explore a C program that uses recursion to find the sum of natural numbers. The post…
Read more

C Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers

C Program to Check Whether a Number can be Expressed as the Sum of Two Prime Numbers In this tutorial, we’ll create a C program to determine whether a given number can be expressed as the sum of two prime numbers. Prime numbers are positive integers greater than 1 that have no positive divisors other…
Read more

C Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers

C Program to Check Whether a Number can be Expressed as the Sum of Two Prime Numbers In this tutorial, we’ll develop a C program to determine whether a given number can be expressed as the sum of two prime numbers. Prime numbers, being integers greater than 1 with no divisors other than 1 and…
Read more

C Program to Check Prime or Armstrong Number Using User-defined Function

C Program: Check Prime or Armstrong Number Using User-defined Function Introduction In this blog post, we’ll explore a C program that checks whether a given number is prime or an Armstrong number using user-defined functions. The program will take an integer as input, determine if it is prime or Armstrong, and display the result. We’ll…
Read more

C Program to Display Prime Numbers Between Intervals Using Function

C Program to Display Prime Numbers Between Intervals Using Function In this tutorial, we’ll develop a C program that utilizes a function to display prime numbers within a specified range. The program will prompt the user to input the lower and upper limits of the interval, and then it will identify and display all the…
Read more

C Program to Make a Simple Calculator Using switch…case

C Program to Make a Simple Calculator Using switch…case In this tutorial, we’ll develop a simple calculator program in C using the switch statement. This calculator will perform basic arithmetic operations such as addition, subtraction, multiplication, and division. We’ll design an algorithm to handle user input and implement the calculator functionality using a switch statement.…
Read more