Date in Words
Date in Words
Date in Words
Array Element in Reverse Order
OR Table
Pizza Shop
AND Table
XOR Table
Shopping Application
This programme takes user input for a day, month, and year and calculates the corresponding day of the week using Zeller’s Congruence.
Frequency of All Numbers
This program takes user input for a time in HH:MM format, validates the input, and then determines which time-related phrases should be included in the output based on the entered time. The final result is printed on the console.
Restart or Shutdown Computer
Average of Array at Even Positions
Addition and Multiplication Using Bitwise Operations
ATM Program
Show Calendar Using Month and Year
All Bitwise Operations
Calculate Squares Using N Co-Ordinates
Calculate Compound Interest
Electricity Bill
Spiral Pattern
Even or Odd Using Bitwise Operations
This code generates a Fibonacci series by calculating the next number in the series as the sum of the two previous numbers.
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.
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).
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.
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.
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.
This code takes a user-defined number ‘n’, calculates the sum of all natural numbers from 0 to ‘n’, and then prints the result.
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.
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.
This C program that takes user input to create an array of 0s and 1s, then sorts and displays the array.
This C program is designed to find and print prime numbers within a specified range defined by two input numbers.
Find the maximum prime number below a user-entered number.
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 …
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.
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 …
The provided C program is designed to determine whether a given number is an Armstrong number or not.
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.
In mathematics, a perfect number is a positive integer that is equal to the sum of its proper divisors (excluding itself). T
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.
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.
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.