Programming

  • Raja Gupta
  • September 27, 2024

Program to Find the Sum of Digits of a Number

Problem Statement: Write a C program to find the sum of digits of a given number. Description:This program calculates the sum of the digits of a number. It uses a loop and arithmetic operations to extract each digit of the number, add them together, and return the sum. Usage:The user enters a positive integer, and

  • Raja Gupta
  • September 22, 2024

Program to Convert Celsius to Fahrenheit

Problem Statement: Write a C program to convert a temperature in Celsius to Fahrenheit Description:This program converts a given temperature from Celsius to Fahrenheit using the formula: Fahrenheit = (Celsius * 9/5) + 32It demonstrates basic input/output functions and arithmetic operations in C. Usage:The user inputs a temperature in Celsius, and the program converts and

  • Raja Gupta
  • September 22, 2024

Program to Swap Two Numbers without Using a Temporary Variable

Description:This program swaps two numbers without using a temporary variable. It uses basic arithmetic operations to swap values, showcasing how arithmetic manipulation can be used to exchange values without needing extra memory. Usage:The user inputs two numbers, and the program swaps their values and displays the result. Code: Explanation: Test here:

  • Raja Gupta
  • September 22, 2024

C Programming Exercise

Welcome to our C Programming Exercises page! Whether you’re a beginner or looking to sharpen your skills, we have a variety of exercises to help you master C programming. Our exercises are divided into three categories based on difficulty.

  • Raja Gupta
  • September 22, 2024

Program to Find GCD of Two Numbers

Description:This program finds the Greatest Common Divisor (GCD) of two numbers. The GCD is the largest positive integer that divides both numbers without leaving a remainder. It demonstrates the use of loops and conditional logic to find common divisors. Usage:The user inputs two numbers, and the program finds and prints their GCD. Code: Explanation: Test

  • Raja Gupta
  • September 22, 2024

Program to Print Fibonacci Series

Description:This program prints the Fibonacci sequence, where each number is the sum of the two preceding ones. It starts from 0 and 1 and continues for “n” terms. It introduces loops and helps in understanding series generation using iteration. Usage:The user inputs the number of terms they want in the Fibonacci sequence, and the program

C Programming Practice Bootcamp – Learn by Coding

Updated: July 15, 2025
Beginner

This beginner-friendly course is designed for students and aspiring programmers who want to learn C programming by doing. Instead of long lectures and dry theory, you’ll write real code from Day 1. Every lesson is hands-on, built with short instructions, real examples, and instant challenges — just like how you’d learn in a coding bootcamp