Skip to content
Download Android App: Follow Us:
Simple2Code
  • Home
  • Java
    • Java Tutorial
    • Java Programs
    • Java Pattern Programs
  • C
    • C Tutorial
    • C Programs
  • C++
    • C++ Tutorial
    • C++ Programs
  • C#
    • C# Tutorial
    • C# Programs
  • Apps
  • Blog
  • About Us

c number programs

C Program to find the sum of the digits of a number using recursion function

This C program calculates the sum of digits of a given number using recursion. Here’s a concise explanation: Output: Enter a number: 123 Sum of digits of a number: 6 Learn more on recursion.

Categories C Programs Tags c number programs, c special number programs

C program to find factorial of a number using Ternary operator with Recursion

Recursion refers to the function calling itself directly or in a cycle. Before we begin, you should have the knowledge of following in C Programming: This C program calculates the factorial of a given number using recursion and the ternary …

Read moreC program to find factorial of a number using Ternary operator with Recursion

Categories C Programs Tags c number programs

C Program to Add Two Numbers Using Call by Reference

The program takes the two numbers from the user and passes the reference to the function where the sum is calculated. You may go through the topic below. Output: Enter the first number: 15.5Enter the Second number: 20.5Sum of the …

Read moreC Program to Add Two Numbers Using Call by Reference

Categories C Programs Tags c number programs

C Program to Reverse a Number using for loop

In this tutorial, we will write a reverse number in C using for loop. Before that, you may go through the following topics in C. C program to reverse a number using for loop This is a reverse number program …

Read moreC Program to Reverse a Number using for loop

Categories C Programs Tags c loop programs, c number programs

C Program to Reverse a given Number using Recursive Function

In this tutorial, we will write a program to reverse an input number using recursion in C. Before that you may go through the following topic in C programming. C Program to Reverse a given Number using Recursive Function Output: …

Read moreC Program to Reverse a given Number using Recursive Function

Categories C Programs Tags c number programs

C Program to Add Two Numbers using Pointers

In this tutorial, we will write a program to find the sum of numbers using pointers in C program. Before that, you should have knowledge on the following topic in C: C Program to Add Two Numbers using Pointers The …

Read moreC Program to Add Two Numbers using Pointers

Categories C Programs Tags c number programs

C Program to Swap Two Numbers

In this tutorial, we will learn how to swap two numbers in C program. Before that, if you may go through the following topics in C that are used in this program. C Program to Swap Two Numbers using temporary …

Read moreC Program to Swap Two Numbers

Categories C Programs Tags c number programs

C Program to Swap Two Numbers without using Third Variable

In this tutorial, we will write a C program to swap two numbers without using a temporary variable. There are two ways to swap variables. Let us go through each of them with a C program. You may check out …

Read moreC Program to Swap Two Numbers without using Third Variable

Categories C Programs Tags c number programs

C Program to Check Whether a Given Number is Prime or Not

In this C programming example, we will learn about the Prime Number program in C. We specifically write a program to check the entered number is prime or not. Prime Number: A Prime Number is a number that is only …

Read moreC Program to Check Whether a Given Number is Prime or Not

Categories C Programs Tags c number programs

C Program to Check Whether Number is Even or Odd (Condition and Ternary Operator)

This is the tutorial to check the number is odd and even in C. A number divisible by 2 is said an even number otherwise the number is called an odd number. The concept of checking the number using the …

Read moreC Program to Check Whether Number is Even or Odd (Condition and Ternary Operator)

Categories C Programs Tags c number programs
Older posts
Page1 Page2 … Page4 Next →

More Topics

  • Java Program to find the sum of the Largest Forward Diagonal
    28 April 2024
  • C Program to search an element in an array using Pointers
    7 January 2024
  • C Program to find the sum of the digits of a number using recursion function
    7 January 2024
  • C program to find factorial of a number using Ternary operator with Recursion
    6 January 2024
  • C Program to Add Two Numbers Using Call by Reference
    6 January 2024
  • Find the output ab, cd, ef, g for the input a,b,c,d,e,f,g in Javascript and Python
    1 February 2023
  • String Pattern Programs in C
    29 July 2022

Categories

  • C Programs
  • C Tutorial
  • computer fundamentals
  • CPlusPlus Programs
  • CPlusPlus Tutorial
  • CSharp Programs
  • CSharp Tutorial
  • HTML
  • Java Programs
  • Java Tutorial
  • javascript
  • Uncategorised

Simple2Code

  • About Us
  • Privacy Policy
  • Disclaimer
  • Sitemap

Search

Follow Us:
Copyright © 2025 Simple2Code