Menu
×
Tutorials Ms Word Tutorial Ms Excel Tutorial Ms PowerPoint Tutorial C Language Tutorial C++ Tutorial C Sharp Tutorial Visual Basic Tutorial HTML Tutorial CSS Tutorial JavaScript Tutorial WordPress Tutorial
     ❯   

Clock

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.

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 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.

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 …

Print Magic Numbers Till N Read More »

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 …

N Strong Numbers Read More »

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.

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.

Scroll to Top
Scroll to Top