ADVERTISEMENT
Programming
Learn the fundamentals of programming with our comprehensive tutorials. We offer step-by-step guidance for beginners to build a strong foundation in coding, along with advanced topics for experienced developers.
Learn C language, C++, C sharp, Visual basic and programming today!
Even or Odd Using Bitwise Operations
Even or Odd Using Bitwise Operations
Find Min and Max of Given Number
Find Min and Max of Given Number
Spiral Pattern
Spiral Pattern
Get Day Name From Date
This programme takes user input for a day, month, and year and calculates the corresponding day of the week using Zeller’s Congruence.
Delete Specific Number
Delete Specific Number
Electricity Bill
Electricity Bill
Insert Into Array at Specific Position
Insert Into Array at Specific Position
Calculate Compound Interest
Calculate Compound Interest
Separate Even and Odd Numbers
Separate Even and Odd Numbers
Calculate Squares Using N Co-Ordinates
Calculate Squares Using N Co-Ordinates
Union and Intersection of Array
Union and Intersection of Array
All Bitwise Operations
All Bitwise Operations
Shopping Application
Shopping Application
Show Calendar Using Month and Year
Show Calendar Using Month and Year
ATM Program
ATM Program
XOR Table
XOR Table
Merge and Sort Two Arrays
Merge and Sort Two Arrays
Addition and Multiplication Using Bitwise Operations
Addition and Multiplication Using Bitwise Operations
AND Table
AND Table
Find 2 Max Numbers
Find 2 Max Numbers
Fibonacci Series
This code generates a Fibonacci series by calculating the next number in the series as the sum of the two previous numbers.
Factorial of A Number
This code calculates the factorial of a number provided by the user by iterating through a for loop and continuously multiplying the running factorial value by the loop variable i.
Sum of All Integers Divisible By 2 Between Two Numbers
This C program calculates the sum of all integers between two user-defined numbers (num1 and num2) that are divisible by 2 (i.e., even numbers).
Given Number is Palindrome Or Not
This code takes an integer input, reverses the digits of that input, and checks if the reversed number is the same as the original input.
Reverse of a Given Number
This code takes an integer input, reverses the order of its digits using a while loop, and then displays both the original and reversed numbers.
Sum of All Digits in a Number
This code takes a positive integer input, extracts each digit, calculates the sum of these digits, and then displays the original number and the sum.
Sum of N Numbers
This code takes a user-defined number ‘n’, calculates the sum of all natural numbers from 0 to ‘n’, and then prints the result.
Find Largest of Three Numbers
This code takes three numbers as input and finds and displays the largest number among them. It demonstrates the use of conditional statements in C for decision-making based on user input.
Arrange Zeros (0) to Right and Ones Left Side in Array
This C program takes user input to create an array of binary digits, checks the input for validity, sorts the array in descending order using the Bubble Sort algorithm, and then displays the sorted array.
Arrange Zeros (0) to left and Ones Right Side in Array
This C program that takes user input to create an array of 0s and 1s, then sorts and displays the array.
Prime Numbers Between Given Two Numbers
This C program is designed to find and print prime numbers within a specified range defined by two input numbers.
Max Prime Number Under Given Number
Find the maximum prime number below a user-entered number.
Print Magic Numbers Till N
Certainly! Let’s break down the code into a detailed explanation: This line includes the necessary header file stdio.h for input/output operations. These lines declare two functions: The program execution begins from the main function. Variables are declared to store loop counter (i), user input (num), and intermediate results (sumOfDigits, reverseOfNumber). The user is prompted to …
Inputted Number is Magic or Not
A Magic Number is a number in which the product of the sum of its digits and the reverse of the sum is equal to the original number.
N Strong Numbers
Certainly! Let’s go into more detail about each part of the code: Certainly! Let’s go into more detail about each part of the code: These lines include the necessary header files. stdio.h is included for input and output operations, and math.h is included for mathematical functions. Although the math.h file is included, it is not …
Inputted Number is Strong or Not
The provided C program is designed to determine whether a given number is an Armstrong number or not.
Check Repeated Digits in Given Input
This code takes a positive integer input, analyzes the frequency of each digit, identifies any repeated digits, and reports the repeated digits along with their frequency.
Perfect Number Between 1 and Given Input
In mathematics, a perfect number is a positive integer that is equal to the sum of its proper divisors (excluding itself). T
Check Perfect Number or Not
Checks whether the sum of divisors (sum) is equal to the original number (num). If they are equal, it prints a message indicating that the number is perfect; otherwise, it indicates that the number is not perfect.
Armstrong Between 1 and Given Input
This program calculates the sum of the cubes of the digits for each number within the given range and checks if the sum is equal to the original number.
Number Is Armstrong or not
This program extracts the digits of a given number, calculates the sum of the cubes of these digits, and checks if this sum is equal to the original number. If it is equal, the number is considered an Armstrong number; otherwise, it’s not.
Check A Number It Is Prime or Not
This C program checks whether a given number is prime and displays the result.